Skip to content

Commit fc766ac

Browse files
committed
refactor: moved to _components
1 parent c5e14e7 commit fc766ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+154
-9828
lines changed
Lines changed: 10 additions & 0 deletions
Loading
-25.2 KB
Binary file not shown.
-66.2 KB
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
export interface AppState {
22
mode: 'light' | 'dark';
3+
featureFlags?: {
4+
showTailwind?: boolean;
5+
};
36
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createContextId } from '@builder.io/qwik';
22
import { AppState } from './app-state.type';
33

4-
export const APP_STATE_CONTEXT_ID = createContextId<AppState>(
4+
export const ROOT_STORE_CONTEXT_ID = createContextId<AppState>(
55
'app-state-context-id'
66
);
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { useContext } from '@builder.io/qwik';
2+
import { ROOT_STORE_CONTEXT_ID } from './root-store-context-id';
3+
4+
export const useRootStore = () => {
5+
const rootStore = useContext(ROOT_STORE_CONTEXT_ID);
6+
7+
return rootStore;
8+
};

apps/website/src/components/material/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

apps/website/src/components/material/material-provider/material-provider.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

apps/website/src/components/material/styles/material-icons.css

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)