mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(console): remove unused api resource help button (#1217)
This commit is contained in:
parent
f9f646c420
commit
e5249e2f8c
3 changed files with 0 additions and 20 deletions
|
@ -15,7 +15,6 @@ import Button from '@/components/Button';
|
|||
import Card from '@/components/Card';
|
||||
import CopyToClipboard from '@/components/CopyToClipboard';
|
||||
import DetailsSkeleton from '@/components/DetailsSkeleton';
|
||||
import Drawer from '@/components/Drawer';
|
||||
import FormField from '@/components/FormField';
|
||||
import LinkButton from '@/components/LinkButton';
|
||||
import TabNav, { TabNavItem } from '@/components/TabNav';
|
||||
|
@ -58,7 +57,6 @@ const ApiResourceDetails = () => {
|
|||
const api = useApi();
|
||||
|
||||
const [isDeleteFormOpen, setIsDeleteFormOpen] = useState(false);
|
||||
const [isReadmeOpen, setIsReadmeOpen] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (!data) {
|
||||
|
@ -100,22 +98,6 @@ const ApiResourceDetails = () => {
|
|||
</div>
|
||||
</div>
|
||||
<div className={styles.operations}>
|
||||
<Button
|
||||
title="admin_console.api_resource_details.check_help_guide"
|
||||
size="large"
|
||||
onClick={() => {
|
||||
setIsReadmeOpen(true);
|
||||
}}
|
||||
/>
|
||||
<Drawer
|
||||
isOpen={isReadmeOpen}
|
||||
onClose={() => {
|
||||
setIsReadmeOpen(false);
|
||||
}}
|
||||
>
|
||||
{/* TODO - Implement the content when the documentation website is ready. */}
|
||||
<div>TBD</div>
|
||||
</Drawer>
|
||||
<ActionMenu
|
||||
buttonProps={{ icon: <More className={styles.moreIcon} />, size: 'large' }}
|
||||
title={t('api_resource_details.more_options')}
|
||||
|
|
|
@ -223,7 +223,6 @@ const translation = {
|
|||
},
|
||||
api_resource_details: {
|
||||
back_to_api_resources: 'Back to API resources',
|
||||
check_help_guide: 'Check Help Guide',
|
||||
more_options: 'MORE OPTIONS',
|
||||
options_delete: 'Delete',
|
||||
settings: 'Settings',
|
||||
|
|
|
@ -219,7 +219,6 @@ const translation = {
|
|||
},
|
||||
api_resource_details: {
|
||||
back_to_api_resources: '返回我的 API 资源',
|
||||
check_help_guide: '查看帮助引导',
|
||||
more_options: '更多选项',
|
||||
options_delete: '删除',
|
||||
settings: '设置',
|
||||
|
|
Loading…
Reference in a new issue