From 48191baf2b9a768c094325bb013c46ab930d6a80 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 26 Aug 2024 16:13:43 -0700 Subject: [PATCH] Start of the mailbox list. --- src/App.tsx | 41 ++--------------------------------------- src/Mailbox.tsx | 12 ++++++++++++ 2 files changed, 14 insertions(+), 39 deletions(-) create mode 100644 src/Mailbox.tsx diff --git a/src/App.tsx b/src/App.tsx index 5bca74c..854a891 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,49 +1,12 @@ -import React, { ReactNode, useState } from 'react'; -import logo from './logo.svg'; import './App.css'; -import Toast from 'react-bootstrap/Toast'; -import Button from 'react-bootstrap/Button'; - -interface Props { - children?: ReactNode -} +import MailboxList from './Mailbox'; -const ExampleToast = ({ children }: Props) => { - const [show, toggleShow] = useState(true); - - return ( - <> - {!show && } - toggleShow(false)}> - - React-Bootstrap - - {children} - - - ); -}; function App() { return (
-
- logo -

- Edit src/App.tsx and save to reload, Eli. -

- - Learn React - - - -
+
); } diff --git a/src/Mailbox.tsx b/src/Mailbox.tsx new file mode 100644 index 0000000..735a6bb --- /dev/null +++ b/src/Mailbox.tsx @@ -0,0 +1,12 @@ +import ListGroup from 'react-bootstrap/ListGroup'; + +function Mailbox() { + return ( + + Inbox + Spam + + ); +} + +export default Mailbox;