diff --git a/src/components/App.tsx b/src/components/App.tsx index c36406b..8a0d2f2 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1,5 +1,6 @@ import React from 'react'; import AllDecks from './AllDecks'; +import MenuBar from './MenuBar'; function App() { // const [CTDeck,setCTDeck] = useState(new Deck( @@ -14,6 +15,7 @@ function App() { return (
+
); diff --git a/src/components/CardGroup.tsx b/src/components/CardGroup.tsx index 6e67851..2e5a419 100644 --- a/src/components/CardGroup.tsx +++ b/src/components/CardGroup.tsx @@ -38,7 +38,7 @@ const CardGroupComp: React.FC = ({cardGroup,side,onChange,onRemove}) => { /> )}
onChange?.( new CardGroup( cardGroup.numInDeck, diff --git a/src/components/Deck.tsx b/src/components/Deck.tsx index 736015b..24a0766 100644 --- a/src/components/Deck.tsx +++ b/src/components/Deck.tsx @@ -42,7 +42,7 @@ const DeckComp: React.FC = ({deck,side,title,onChange}) => { }} /> )} -
onChange?.( new Deck( deck.numDefusers, diff --git a/src/components/MenuBar.tsx b/src/components/MenuBar.tsx new file mode 100644 index 0000000..47dd3d0 --- /dev/null +++ b/src/components/MenuBar.tsx @@ -0,0 +1,22 @@ +import React from "react" + +interface Props { + onExport?: ()=>void +} + +const MenuBar: React.FC = ({onExport}) => { + return ( +
+
+ Export +
+ +
+ Help +
+
+
+ ) +} + +export default MenuBar diff --git a/src/index.css b/src/index.css index 3d583cd..5e9f6c3 100644 --- a/src/index.css +++ b/src/index.css @@ -5,3 +5,7 @@ .min-h-card { min-height: 10rem; } + +.button { + @apply py-1 px-2 mx-2 hover:bg-gray-900 cursor-pointer +}