Skip to content

Commit

Permalink
Merge pull request #250 from coder12git/sistent-site-draft
Browse files Browse the repository at this point in the history
fix(site): fix empty components

fix #237
  • Loading branch information
nebula-aac authored Nov 8, 2023
2 parents d0ebc1d + 39f8e07 commit 21f8234
Show file tree
Hide file tree
Showing 8 changed files with 8,781 additions and 19,948 deletions.
28,687 changes: 8,750 additions & 19,937 deletions site/package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion site/src/components/Footer/Footer.style.js

This file was deleted.

1 change: 0 additions & 1 deletion site/src/components/Navigation/Navbar.style.js

This file was deleted.

6 changes: 2 additions & 4 deletions site/src/components/Theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const defaultState = {

const ThemeContext = React.createContext(defaultState);

const supportsDarkMode = () =>
window.matchMedia("(prefers-color-scheme: dark)").matches === true;
// const supportsDarkMode = () =>
// window.matchMedia("(prefers-color-scheme: dark)").matches === true;

function ThemeProvider({ children }) {
const [dark, setDark] = useState(false);
Expand All @@ -24,8 +24,6 @@ function ThemeProvider({ children }) {
const isDark = JSON.parse(localStorage.getItem("dark"));
if (isDark) {
setDark(isDark);
} else if (supportsDarkMode()) {
setDark(true);
}
}, []);

Expand Down
10 changes: 9 additions & 1 deletion site/src/pages/components/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
import React from 'react';
import React from 'react';

const Components = () => {
return(
<div className="text-center text-bold">Components</div>
)
};

export default Components;
4 changes: 2 additions & 2 deletions site/src/pages/identity/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const Sidebar = (props)=>{
<div className="text-center text-gray-950 text-xs font-bold font-qanelas leading-normal">On this Page</div>
<div className="self-stretch h-[9.5rem] flex-col justify-start items-start gap-2 flex">
{props.items && props.items.map((item)=>{
return (<>
return (<div key={item.title}>
<div className="self-stretch justify-start items-center gap-1 inline-flex">
<div className="grow shrink basis-0 text-gray-950 text-sm font-normal font-openSans leading-normal">{item.title}</div>
</div>
</>)
</div>)
})}
</div>
</div>
Expand Down
10 changes: 9 additions & 1 deletion site/src/pages/patterns/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
import React from "react";
import React from "react";

const Patterns = () => {
return(
<div className="text-center text-bold">Patterns</div>
)
};

export default Patterns;
10 changes: 9 additions & 1 deletion site/src/pages/visualise/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
import React from "react";
import React from "react";

const Visualize = () => {
return(
<div className="text-center text-bold">Visualize</div>
)
};

export default Visualize;

0 comments on commit 21f8234

Please sign in to comment.