File tree 8 files changed +8781
-19948
lines changed
8 files changed +8781
-19948
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ const defaultState = {
7
7
8
8
const ThemeContext = React . createContext ( defaultState ) ;
9
9
10
- const supportsDarkMode = ( ) =>
11
- window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches === true ;
10
+ // const supportsDarkMode = () =>
11
+ // window.matchMedia("(prefers-color-scheme: dark)").matches === true;
12
12
13
13
function ThemeProvider ( { children } ) {
14
14
const [ dark , setDark ] = useState ( false ) ;
@@ -24,8 +24,6 @@ function ThemeProvider({ children }) {
24
24
const isDark = JSON . parse ( localStorage . getItem ( "dark" ) ) ;
25
25
if ( isDark ) {
26
26
setDark ( isDark ) ;
27
- } else if ( supportsDarkMode ( ) ) {
28
- setDark ( true ) ;
29
27
}
30
28
} , [ ] ) ;
31
29
Original file line number Diff line number Diff line change 1
- import React from 'react' ;
1
+ import React from 'react' ;
2
+
3
+ const Components = ( ) => {
4
+ return (
5
+ < div className = "text-center text-bold" > Components</ div >
6
+ )
7
+ } ;
8
+
9
+ export default Components ;
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ const Sidebar = (props)=>{
6
6
< div className = "text-center text-gray-950 text-xs font-bold font-qanelas leading-normal" > On this Page</ div >
7
7
< div className = "self-stretch h-[9.5rem] flex-col justify-start items-start gap-2 flex" >
8
8
{ props . items && props . items . map ( ( item ) => {
9
- return ( < >
9
+ return ( < div key = { item . title } >
10
10
< div className = "self-stretch justify-start items-center gap-1 inline-flex" >
11
11
< div className = "grow shrink basis-0 text-gray-950 text-sm font-normal font-openSans leading-normal" > { item . title } </ div >
12
12
</ div >
13
- </ > )
13
+ </ div > )
14
14
} ) }
15
15
</ div >
16
16
</ div >
Original file line number Diff line number Diff line change 1
- import React from "react" ;
1
+ import React from "react" ;
2
+
3
+ const Patterns = ( ) => {
4
+ return (
5
+ < div className = "text-center text-bold" > Patterns</ div >
6
+ )
7
+ } ;
8
+
9
+ export default Patterns ;
Original file line number Diff line number Diff line change 1
- import React from "react" ;
1
+ import React from "react" ;
2
+
3
+ const Visualize = ( ) => {
4
+ return (
5
+ < div className = "text-center text-bold" > Visualize</ div >
6
+ )
7
+ } ;
8
+
9
+ export default Visualize ;
You can’t perform that action at this time.
0 commit comments