Skip to content

Commit ad8aadb

Browse files
committed
Merge remote-tracking branch 'upstream/main' into refactor-select
2 parents 009be72 + 690e856 commit ad8aadb

Some content is hidden

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

66 files changed

+179
-9848
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
*.
55
dist
66
node_modules
7-
coverage
7+
coverage
8+
**/*.mdx

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<br>
3-
<img width="400" src="./apps/website/public/qwik-ui.png" alt="awesome logo of qwik ui">
3+
<img width="400" src="./apps/website/public/images/qwik-ui.png" alt="awesome logo of qwik ui">
44
<br>
55
<br>
66
</p>

apps/website/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ build
2929
dist
3030
tsconfig.tsbuildinfo
3131
vite.config.ts
32+
**/*.mdx
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+
};

0 commit comments

Comments
 (0)