-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
arzafran
committed
Sep 12, 2023
1 parent
053a9c8
commit 4e8eba7
Showing
6 changed files
with
145 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
import { create } from 'zustand' | ||
import { shallow } from 'zustand/shallow' | ||
import { createWithEqualityFn } from 'zustand/traditional' | ||
|
||
export const useStore = create((set) => ({ | ||
headerData: undefined, | ||
setHeaderData: (headerData) => set({ headerData }), | ||
footerData: undefined, | ||
setFooterData: (footerData) => set({ footerData }), | ||
navIsOpened: false, | ||
setNavIsOpened: (value) => set({ navIsOpened: value }), | ||
triggerTransition: false, | ||
setTriggerTransition: (triggerTransition) => set({ triggerTransition }), | ||
})) | ||
export const useStore = createWithEqualityFn( | ||
(set) => ({ | ||
headerData: undefined, | ||
setHeaderData: (headerData) => set({ headerData }), | ||
footerData: undefined, | ||
setFooterData: (footerData) => set({ footerData }), | ||
navIsOpened: false, | ||
setNavIsOpened: (value) => set({ navIsOpened: value }), | ||
triggerTransition: false, | ||
setTriggerTransition: (triggerTransition) => set({ triggerTransition }), | ||
}), | ||
shallow, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
4e8eba7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"⚡️ Lighthouse report for the changes in this commit:
🟢 Performance: 100
🟢 Accessibility: 97
🟢 Best practices: 100
🟠 SEO: 83
🟢 PWA: 90
Lighthouse ran on https://satus-dyyn25eus-studio-freight.vercel.app/"