Skip to content

Commit

Permalink
feat: remove js2ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyxh committed Aug 15, 2024
1 parent 66256ef commit 61eb907
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 248 deletions.
25 changes: 0 additions & 25 deletions src/tools/json2typescript/Index.module.less

This file was deleted.

67 changes: 0 additions & 67 deletions src/tools/json2typescript/Index.tsx

This file was deleted.

155 changes: 0 additions & 155 deletions src/tools/json2typescript/JSON2TypeScript.ts

This file was deleted.

4 changes: 3 additions & 1 deletion src/viewer/Tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { MenuProps } from 'antd';
import { Layout, Menu } from 'antd';

import type { ResolveRouteObject } from '@/router';
import { Outlet, useHistory } from '@/router';
import { Outlet, useHistory, useLocation } from '@/router';

import { useTools } from './hooks/useTools';

Expand All @@ -27,12 +27,14 @@ const Tools: React.FC = () => {
const tools = useTools();

const router = useHistory();
const location = useLocation();

return (
<div>
<Layout.Sider width={250} style={siderStyle}>
<Menu
mode="inline"
defaultSelectedKeys={[location.path]}
items={wrapperToolItem(tools)}
onClick={(e) => {
router.push(e.key);
Expand Down

0 comments on commit 61eb907

Please sign in to comment.