Save point, Sidebar prevents navigation without first saving or cancelling current changes
This commit is contained in:
@@ -8,7 +8,7 @@ const user = {
|
||||
// avatar: "src\\assets\\user_profile.svg"
|
||||
}
|
||||
|
||||
export default function Header({ view, setView }) {
|
||||
export default function Header({ view, setView, onChangeView }) {
|
||||
const recipe = useRecipe({ key: "header" });
|
||||
const styles = recipe();
|
||||
|
||||
@@ -25,6 +25,7 @@ export default function Header({ view, setView }) {
|
||||
avatar={user.avatar}
|
||||
view={ view }
|
||||
setView={ setView }
|
||||
onChangeView={ onChangeView }
|
||||
/>
|
||||
</Flex>
|
||||
</chakra.div>
|
||||
|
||||
Reference in New Issue
Block a user