From 2cef65604f8a4d58b51e8ce2164985c075b19ec3 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Mon, 10 Feb 2025 22:06:02 -0600 Subject: [PATCH] maybe? a girl can dream --- components/Home/helpers/add-playlist-popover.tsx | 11 ++++++----- components/Home/helpers/playlists.tsx | 10 ++++++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/components/Home/helpers/add-playlist-popover.tsx b/components/Home/helpers/add-playlist-popover.tsx index fcb84204..4a08f639 100644 --- a/components/Home/helpers/add-playlist-popover.tsx +++ b/components/Home/helpers/add-playlist-popover.tsx @@ -2,12 +2,13 @@ import Icon from "../../../components/Global/helpers/icon"; import { Label } from "../../../components/Global/helpers/text"; import { Popover, Adapt, YStack, XStack, Input, getToken, Button } from "tamagui"; -export default function AddPlaylistPopover() : React.JSX.Element { +export default function AddPlaylistPopover({ + open +}: { + open: boolean +}) : React.JSX.Element { return ( - - - - + {/* {shouldAdapt && ( diff --git a/components/Home/helpers/playlists.tsx b/components/Home/helpers/playlists.tsx index 1a7bcd67..c7e2003f 100644 --- a/components/Home/helpers/playlists.tsx +++ b/components/Home/helpers/playlists.tsx @@ -3,13 +3,15 @@ import { useUserPlaylists } from "../../../api/queries/playlist"; import { ItemCard } from "../../Global/components/item-card"; import { H2 } from "../../../components/Global/helpers/text"; import { StackParamList } from "../../../components/types"; -import React from "react"; +import React, { useState } from "react"; import { FlatList } from "react-native"; -import { View, XStack, YStack } from "tamagui"; +import { getToken, View, XStack, YStack } from "tamagui"; import AddPlaylistPopover from "./add-playlist-popover"; +import Icon from "@/components/Global/helpers/icon"; export default function Playlists({ navigation }: { navigation: NativeStackNavigationProp}) : React.JSX.Element { + const [createPlaylist, setCreatePlaylist] = useState(false); const { data: playlists } = useUserPlaylists(); return ( @@ -18,8 +20,8 @@ export default function Playlists({ navigation }: { navigation: NativeStackNavig

Your Playlists

- {/* */} - + setCreatePlaylist(true)}/> +