fix linter

This commit is contained in:
Simon
2025-01-07 09:48:45 +07:00
parent 8ca943ca7b
commit 09ef342de7
18 changed files with 42 additions and 34 deletions

View File

@@ -12,7 +12,7 @@ import ScrollToTopOnNavigate from '../components/ScrollToTop';
import Notifications from '../components/Notifications';
import Button from '../components/Button';
import updateChannelSubscription from '../api/actions/updateChannelSubscription';
import loadIsAdmin from '../functions/getIsAdmin';
import useIsAdmin from '../functions/useIsAdmin';
import { useUserConfigStore } from '../stores/UserConfigStore';
type ChannelOverwritesType = {
@@ -50,7 +50,7 @@ type ChannelsListResponse = {
const Channels = () => {
const { userConfig, setPartialConfig } = useUserConfigStore();
const { currentPage, setCurrentPage } = useOutletContext() as OutletContextType;
const isAdmin = loadIsAdmin();
const isAdmin = useIsAdmin();
const [channelListResponse, setChannelListResponse] = useState<ChannelsListResponse>();
const [showAddForm, setShowAddForm] = useState(false);