diff --git a/src/components/App.tsx b/src/components/App.tsx index 0fae68e..2fda47e 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1,13 +1,11 @@ import { For } from "solid-js"; -import { A } from "solid-start"; import { Motion, Presence } from "@motionone/solid"; import logo from '~/assets/icons/mutiny-logo.svg'; -import mutiny_m from '~/assets/icons/m.svg'; -import scan from '~/assets/icons/scan.svg'; -import settings from '~/assets/icons/settings.svg'; import send from '~/assets/icons/send.svg'; import BalanceBox from "./BalanceBox"; +import SafeArea from "./SafeArea"; +import NavBar from "./NavBar"; // TODO: use this reload prompt for real // import ReloadPrompt from "./Reload"; @@ -28,57 +26,41 @@ function ActivityItem() { export default function App() { return ( -
-
-
-
- + +
+
+ +
+ {/* */} + +
+
+ Activity
- {/* */} - -
-
- Activity -
- - {() => - - - - - - } - - + + {() => + + + + + + } + + - {/* safety div */} -
-
- -
-
+ + {/* safety div */} +
+ + + ); } diff --git a/src/components/NavBar.tsx b/src/components/NavBar.tsx new file mode 100644 index 0000000..0649931 --- /dev/null +++ b/src/components/NavBar.tsx @@ -0,0 +1,28 @@ +import mutiny_m from '~/assets/icons/m.svg'; +import scan from '~/assets/icons/scan.svg'; +import settings from '~/assets/icons/settings.svg'; + +import { A } from "solid-start"; + +type ActiveTab = 'home' | 'scan' | 'settings'; + +export default function NavBar(props: { activeTab: ActiveTab }) { + const activeStyle = 'h-full border-t-2 border-b-2 border-b-black flex flex-col justify-center' + return () +} \ No newline at end of file diff --git a/src/components/SafeArea.tsx b/src/components/SafeArea.tsx new file mode 100644 index 0000000..0b24a9a --- /dev/null +++ b/src/components/SafeArea.tsx @@ -0,0 +1,9 @@ +export default function SafeArea(props) { + return ( +
+
+ {props.children} +
+
+ ) +} \ No newline at end of file diff --git a/src/components/waitlist/Notes.tsx b/src/components/waitlist/Notes.tsx index df196ae..5df6a1d 100644 --- a/src/components/waitlist/Notes.tsx +++ b/src/components/waitlist/Notes.tsx @@ -34,9 +34,19 @@ const Note: Component<{ e: NostrEvent }> = (props) => { ) } +function filterReplies(event: Event) { + // If there's a "p" tag or an "e" tag we want to return false, otherwise true + for (const tag of event.tags) { + if (tag[0] === "p" || tag[0] === "e") { + return false + } + } + return true +} + const Notes: Component<{ notes: Event[] }> = (props) => { return (