diff --git a/js/app/components/aqlink.tsx b/js/app/components/aqlink.tsx index 4e47edebc..b6a50c834 100644 --- a/js/app/components/aqlink.tsx +++ b/js/app/components/aqlink.tsx @@ -16,10 +16,13 @@ export default function AQLink({ }) { const { isWeb } = usePlatform(); const navigation = useNavigation>(); + const baseStyle: StyleProp = { + display: "flex", + }; if (isWeb) { return ( - + {children} ); @@ -27,7 +30,7 @@ export default function AQLink({ return ( navigation.navigate(to.screen, to.params)} > {children} diff --git a/js/app/components/golive.tsx b/js/app/components/golive.tsx deleted file mode 100644 index 45c3ed4c3..000000000 --- a/js/app/components/golive.tsx +++ /dev/null @@ -1,135 +0,0 @@ -import { useEffect, useState } from "react"; -import { Button, Label, Paragraph, TextArea, View } from "tamagui"; -import Loading from "./loading/loading"; -import { useToastController } from "@tamagui/toast"; -import useAquareumNode from "hooks/useAquareumNode"; -import { golivePost, selectUserProfile } from "features/bluesky/blueskySlice"; -import { useAppDispatch, useAppSelector } from "store/hooks"; -import AQLink from "./aqlink"; -import { getIdentity, selectAquareum } from "features/aquareum/aquareumSlice"; - -const Left = ({ children }: { children: React.ReactNode }) => { - return ( - - {children} - - ); -}; - -const Right = ({ children }: { children: React.ReactNode }) => { - return ( - - {children} - - ); -}; -type Settings = { - id: string; - streamer: string; - title: string; -}; - -export default function GoLive() { - const toast = useToastController(); - const { url } = useAquareumNode(); - const profile = useAppSelector(selectUserProfile); - const dispatch = useAppDispatch(); - const aquareum = useAppSelector(selectAquareum); - useEffect(() => { - if (!aquareum.identity) { - dispatch(getIdentity()); - } - }, [aquareum.identity]); - const [title, setTitle] = useState(""); - const [loading, setLoading] = useState(false); - const disabled = !profile || loading || title === ""; - if (!aquareum.identity) { - return ( - - - - ); - } - const identity = aquareum.identity; - return ( - - - - -