From c8612f113f37092b5e11e0dad3ef511a95815693 Mon Sep 17 00:00:00 2001 From: BDANG Date: Tue, 7 Jun 2022 10:23:59 -0500 Subject: [PATCH 01/44] wip --- src/App.tsx | 8 +++++++ src/components/CreateFund.tsx | 40 +++++++++++++++++++++++++++++++ src/pages/Admin.tsx | 44 +++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 src/components/CreateFund.tsx create mode 100644 src/pages/Admin.tsx diff --git a/src/App.tsx b/src/App.tsx index ae3390e..9c064c0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -20,7 +20,11 @@ import {DaoInfo} from "./models/dao/dao-info"; import Faucet from "./pages/Faucet"; import {useTokenRegistry} from "./hooks/token-registry"; import {TokenRegistryContext} from "./models/contexts/token-registry-context"; +<<<<<<< Updated upstream import {NotFound} from "./pages/not-found"; +======= +import { Admin } from './pages/Admin'; +>>>>>>> Stashed changes // Default styles that can be overridden require('@solana/wallet-adapter-react-ui/styles.css'); @@ -171,7 +175,11 @@ export const App = () => { }/> +<<<<<<< Updated upstream }/> +======= + }/> +>>>>>>> Stashed changes diff --git a/src/components/CreateFund.tsx b/src/components/CreateFund.tsx new file mode 100644 index 0000000..7e5cacb --- /dev/null +++ b/src/components/CreateFund.tsx @@ -0,0 +1,40 @@ +import React, { useEffect, useState } from "react"; +import { Modal, Button, Text, Input, Row, Checkbox, DropDown } from "@nextui-org/react"; + + +export const CreateFund = () => { + const [visible, setVisible] = useState(true); + + const closeHandler = () => { + setVisible(false); + } + + return ( +
+ + + + Create Fund + + + + + + + + + + + +
+ ) + +} + + diff --git a/src/pages/Admin.tsx b/src/pages/Admin.tsx new file mode 100644 index 0000000..ed29b53 --- /dev/null +++ b/src/pages/Admin.tsx @@ -0,0 +1,44 @@ +import React, { useState } from "react"; +import {Button, Container, theme} from "@nextui-org/react"; +import {Navbar} from "../components/Navbar"; +import {SubNavbar} from "../components/SubNavbar"; +import {Footer} from "../components/Footer"; +import {Outlet} from "react-router-dom"; +import { CreateFund } from "src/components/CreateFund"; + +export const Admin = () => { + return ( + + {/*Background for header*/} +
+ + + + +