-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wip of #158
- Loading branch information
Showing
24 changed files
with
370 additions
and
205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import React from 'react'; | ||
import React, { PropsWithChildren } from 'react'; | ||
import styles from './style.module.css'; | ||
|
||
export const Item: React.FC = ({ children }) => { | ||
type Props = PropsWithChildren<{}>; | ||
|
||
export const Item: React.FC<Props> = ({ children }) => { | ||
return <div className={styles.item}>{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,7 +1,9 @@ | ||
import React from 'react'; | ||
import React, { PropsWithChildren } from 'react'; | ||
import styles from './style.module.css'; | ||
export { Item } from './Item'; | ||
|
||
export const Grid: React.FC = ({ children }) => { | ||
type Props = PropsWithChildren<{}>; | ||
|
||
export const Grid: React.FC<Props> = ({ children }) => { | ||
return <div className={styles.section}>{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
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,11 +1,15 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import './index.css'; | ||
import { createRoot } from 'react-dom/client'; | ||
import Popup from './popup'; | ||
import './index.css'; | ||
|
||
const container = document.getElementById('root'); | ||
|
||
ReactDOM.render( | ||
<React.StrictMode> | ||
<Popup /> | ||
</React.StrictMode>, | ||
document.getElementById('root'), | ||
); | ||
if (container) { | ||
const root = createRoot(container); | ||
root.render( | ||
<React.StrictMode> | ||
<Popup /> | ||
</React.StrictMode>, | ||
); | ||
} |
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,11 +1,15 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { createRoot } from 'react-dom/client'; | ||
import Options from './Options'; | ||
import '../_shared/css/index.css'; | ||
|
||
ReactDOM.render( | ||
<React.StrictMode> | ||
<Options /> | ||
</React.StrictMode>, | ||
document.getElementById('options'), | ||
); | ||
const container = document.getElementById('options'); | ||
|
||
if (container) { | ||
const root = createRoot(container); | ||
root.render( | ||
<React.StrictMode> | ||
<Options /> | ||
</React.StrictMode>, | ||
); | ||
} |
Oops, something went wrong.