Skip to content

Commit

Permalink
Fix DeviceInfo to DeviceInfoDto type change
Browse files Browse the repository at this point in the history
  • Loading branch information
thornbill committed Sep 24, 2024
1 parent 9474a48 commit 29642e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apps/dashboard/routes/users/access.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { BaseItemDto, DeviceInfo, UserDto } from '@jellyfin/sdk/lib/generated-client';
import type { BaseItemDto, DeviceInfoDto, UserDto } from '@jellyfin/sdk/lib/generated-client';
import React, { useCallback, useEffect, useState, useRef } from 'react';
import { useSearchParams } from 'react-router-dom';

Expand Down Expand Up @@ -96,7 +96,7 @@ const UserLibraryAccess = () => {
triggerChange(chkEnableAllChannels);
}, []);

const loadDevices = useCallback((user: UserDto, devices: DeviceInfo[]) => {
const loadDevices = useCallback((user: UserDto, devices: DeviceInfoDto[]) => {
const page = element.current;

if (!page) {
Expand Down Expand Up @@ -131,7 +131,7 @@ const UserLibraryAccess = () => {
}
}, []);

const loadUser = useCallback((user: UserDto, mediaFolders: BaseItemDto[], channels: BaseItemDto[], devices: DeviceInfo[]) => {
const loadUser = useCallback((user: UserDto, mediaFolders: BaseItemDto[], channels: BaseItemDto[], devices: DeviceInfoDto[]) => {
setUserName(user.Name || '');
libraryMenu.setTitle(user.Name);
loadChannels(user, channels);
Expand Down

0 comments on commit 29642e0

Please sign in to comment.