mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
fix types
This commit is contained in:
@@ -24,7 +24,7 @@ type QueueProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const PlayQueue = forwardRef(({ listKey, searchTerm }: QueueProps, ref: Ref<any>) => {
|
export const PlayQueue = forwardRef(({ listKey, searchTerm }: QueueProps, ref: Ref<any>) => {
|
||||||
const { table } = useListSettings(listKey);
|
const { table } = useListSettings(listKey) || {};
|
||||||
|
|
||||||
const queue = usePlayerQueue();
|
const queue = usePlayerQueue();
|
||||||
const isFetching = useIsPlayerFetching();
|
const isFetching = useIsPlayerFetching();
|
||||||
|
|||||||
@@ -82,7 +82,9 @@ interface ListConfigMenuProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const ListConfigMenu = (props: ListConfigMenuProps) => {
|
export const ListConfigMenu = (props: ListConfigMenuProps) => {
|
||||||
const displayType = useSettingsStore((state) => state.lists[props.listKey].display);
|
const displayType = useSettingsStore(
|
||||||
|
(state) => state.lists[props.listKey]?.display,
|
||||||
|
) as ListDisplayType;
|
||||||
const { setList } = useSettingsStoreActions();
|
const { setList } = useSettingsStoreActions();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user