mirror of
https://github.com/Jellify-Music/App.git
synced 2026-03-16 08:50:59 -05:00
okay now actually do something
make track look better when reordering
This commit is contained in:
@@ -157,6 +157,7 @@ export default function Track({
|
||||
</YStack>
|
||||
</XStack>
|
||||
</XStack>
|
||||
<Separator />
|
||||
</View>
|
||||
)
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import DraggableFlatList from "react-native-draggable-flatlist";
|
||||
export default function Queue({ navigation }: { navigation: NativeStackNavigationProp<StackParamList>}): React.JSX.Element {
|
||||
|
||||
const { width } = useSafeAreaFrame();
|
||||
const { queue, useClearQueue, useSkip, nowPlaying, } = usePlayerContext();
|
||||
const { queue, useClearQueue, useReorderQueue, useSkip, nowPlaying, } = usePlayerContext();
|
||||
|
||||
navigation.setOptions({
|
||||
headerRight: () => {
|
||||
@@ -37,7 +37,7 @@ export default function Queue({ navigation }: { navigation: NativeStackNavigatio
|
||||
}}
|
||||
numColumns={1}
|
||||
onDragEnd={({ data, from, to}) => {
|
||||
|
||||
useReorderQueue.mutate({ newOrder: data, from, to });
|
||||
}}
|
||||
renderItem={({ item: queueItem, getIndex, drag, isActive }) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user