-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: popout icon for ccip in calendar (#221)
* feat: popout icon for ccip in calendar * refactor: simplify context --------- Co-authored-by: Razboy20 <[email protected]>
- Loading branch information
1 parent
a2303ee
commit 6812d68
Showing
3 changed files
with
57 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { createContext, useContext } from 'react'; | ||
|
||
/** | ||
* Context for the calendar. | ||
*/ | ||
export const CalendarContext = createContext(false); | ||
|
||
/** | ||
* @returns The calendar context. | ||
*/ | ||
export const useCalendar = () => useContext(CalendarContext); |