0
Fork 0
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:
Xiao Yijun 2022-06-23 17:03:46 +08:00 committed by GitHub
parent f9f646c420
commit e5249e2f8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 20 deletions

View file

@ -15,7 +15,6 @@ import Button from '@/components/Button';
import Card from '@/components/Card'; import Card from '@/components/Card';
import CopyToClipboard from '@/components/CopyToClipboard'; import CopyToClipboard from '@/components/CopyToClipboard';
import DetailsSkeleton from '@/components/DetailsSkeleton'; import DetailsSkeleton from '@/components/DetailsSkeleton';
import Drawer from '@/components/Drawer';
import FormField from '@/components/FormField'; import FormField from '@/components/FormField';
import LinkButton from '@/components/LinkButton'; import LinkButton from '@/components/LinkButton';
import TabNav, { TabNavItem } from '@/components/TabNav'; import TabNav, { TabNavItem } from '@/components/TabNav';
@ -58,7 +57,6 @@ const ApiResourceDetails = () => {
const api = useApi(); const api = useApi();
const [isDeleteFormOpen, setIsDeleteFormOpen] = useState(false); const [isDeleteFormOpen, setIsDeleteFormOpen] = useState(false);
const [isReadmeOpen, setIsReadmeOpen] = useState(false);
useEffect(() => { useEffect(() => {
if (!data) { if (!data) {
@ -100,22 +98,6 @@ const ApiResourceDetails = () => {
</div> </div>
</div> </div>
<div className={styles.operations}> <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 <ActionMenu
buttonProps={{ icon: <More className={styles.moreIcon} />, size: 'large' }} buttonProps={{ icon: <More className={styles.moreIcon} />, size: 'large' }}
title={t('api_resource_details.more_options')} title={t('api_resource_details.more_options')}

View file

@ -223,7 +223,6 @@ const translation = {
}, },
api_resource_details: { api_resource_details: {
back_to_api_resources: 'Back to API resources', back_to_api_resources: 'Back to API resources',
check_help_guide: 'Check Help Guide',
more_options: 'MORE OPTIONS', more_options: 'MORE OPTIONS',
options_delete: 'Delete', options_delete: 'Delete',
settings: 'Settings', settings: 'Settings',

View file

@ -219,7 +219,6 @@ const translation = {
}, },
api_resource_details: { api_resource_details: {
back_to_api_resources: '返回我的 API 资源', back_to_api_resources: '返回我的 API 资源',
check_help_guide: '查看帮助引导',
more_options: '更多选项', more_options: '更多选项',
options_delete: '删除', options_delete: '删除',
settings: '设置', settings: '设置',