diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-06 09:28:22 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-06 09:28:22 -0700 |
commit | f19345c652cfcf1bdf13d0a44a2f302e0cd1aa4c (patch) | |
tree | 4582964105452768a5346afcd764d26db6091504 /extension/react-app/src/components/Layout.tsx | |
parent | 98de69abbd221d0f6b7257a72b89b191356b10b7 (diff) | |
download | sncontinue-f19345c652cfcf1bdf13d0a44a2f302e0cd1aa4c.tar.gz sncontinue-f19345c652cfcf1bdf13d0a44a2f302e0cd1aa4c.tar.bz2 sncontinue-f19345c652cfcf1bdf13d0a44a2f302e0cd1aa4c.zip |
feat: :construction: Router and new history page
Diffstat (limited to 'extension/react-app/src/components/Layout.tsx')
-rw-r--r-- | extension/react-app/src/components/Layout.tsx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/extension/react-app/src/components/Layout.tsx b/extension/react-app/src/components/Layout.tsx new file mode 100644 index 00000000..d1688299 --- /dev/null +++ b/extension/react-app/src/components/Layout.tsx @@ -0,0 +1,28 @@ +import styled from "styled-components"; +import { defaultBorderRadius } from "."; +import { Outlet } from "react-router-dom"; + +const LayoutTopDiv = styled.div` + height: 100%; + border-radius: ${defaultBorderRadius}; + scrollbar-base-color: transparent; + scrollbar-width: thin; +`; +const Layout = () => { + return ( + <LayoutTopDiv> + <div + style={{ + scrollbarGutter: "stable both-edges", + minHeight: "100%", + display: "grid", + gridTemplateRows: "1fr auto", + }} + > + <Outlet /> + </div> + </LayoutTopDiv> + ); +}; + +export default Layout; |