mirror of
https://github.com/Jellify-Music/App.git
synced 2026-05-03 09:10:13 -05:00
okay now actually do something
make track look better when reordering
This commit is contained in:
@@ -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