-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
16 changed files
with
67 additions
and
35 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
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
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
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,8 +1,3 @@ | ||
import type { RouteSectionProps } from '@solidjs/router'; | ||
import { useNotifications } from '~/hooks/use-notifications'; | ||
|
||
export default (props: RouteSectionProps) => { | ||
useNotifications(); | ||
|
||
return <div class="relative flex size-full">{props.children}</div>; | ||
}; | ||
export default (props: RouteSectionProps) => <div class="relative flex size-full">{props.children}</div>; |
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,14 +1,30 @@ | ||
import { Sidebar } from '~/components/layout/sidebar'; | ||
import { EntryPanel } from '~/components/panels/entry-panel'; | ||
import { ListPanel } from '~/components/panels/list-panel'; | ||
import { NotificationsContext, makeNotificationsContext } from '~/contexts/notifications-context'; | ||
import { QueryStateContext, makeQueryStateContext } from '~/contexts/query-state-context'; | ||
|
||
export default () => ( | ||
<> | ||
<Sidebar class="hidden xl:flex xl:w-sidebar xl:shrink-0" /> | ||
export default () => { | ||
const queryState = makeQueryStateContext(); | ||
|
||
<div class="flex size-full flex-1 flex-col overflow-hidden md:flex-row md:gap-4 md:p-4"> | ||
<ListPanel /> | ||
<EntryPanel /> | ||
</div> | ||
</> | ||
); | ||
return ( | ||
<QueryStateContext.Provider value={queryState}> | ||
<Inner /> | ||
</QueryStateContext.Provider> | ||
); | ||
}; | ||
|
||
const Inner = () => { | ||
const notifications = makeNotificationsContext(); | ||
|
||
return ( | ||
<NotificationsContext.Provider value={notifications}> | ||
<Sidebar class="hidden xl:flex xl:w-sidebar xl:shrink-0" /> | ||
|
||
<div class="flex size-full flex-1 flex-col overflow-hidden md:flex-row md:gap-4 md:p-4"> | ||
<ListPanel /> | ||
<EntryPanel /> | ||
</div> | ||
</NotificationsContext.Provider> | ||
); | ||
}; |
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