mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 12:23:20 +00:00
fixup build errors
This commit is contained in:
1 parent
f9d1d8c3da
commit
1590bb8237
1 file changed
+2
-3
+2
-3
@@ -2,8 +2,7 @@ import React, { useCallback, useEffect, useState } from 'react';
|
||||
import { BackLink } from '../../_common/BackLink';
|
||||
import { Category, GetCategory, GetCategoryIsError, GetCategoryIsOk } from '../../../api/category/GetCategory';
|
||||
import { FrontendUrlConfig } from '../../../../common/FrontendUrlConfig';
|
||||
import { GravatarFc } from '../../_common/GravatarFc';
|
||||
import { Link, useHistory } from 'react-router-dom';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import { SessionWrapper } from '../../../../session/SessionWrapper';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import { EditCategory, EditCategoryIsError, EditCategoryIsSuccess, EditCategoryRequest } from '../../../api/category/EditCategory';
|
||||
@@ -79,7 +78,7 @@ function ModerationTtsCategoryEditPage(props: Props) {
|
||||
useEffect(() => {
|
||||
getCategory(token);
|
||||
listTtsCategories();
|
||||
}, [token, getCategory]);
|
||||
}, [token, getCategory, listTtsCategories]);
|
||||
|
||||
if (!props.sessionWrapper.canBanUsers()) {
|
||||
return <h1>Unauthorized</h1>;
|
||||
|
||||
Reference in new issue
Block a user