Skip to content

Commit

Permalink
🏷️ 将import type {改为import { type
Browse files Browse the repository at this point in the history
  • Loading branch information
neila-a committed Apr 28, 2024
1 parent 3e7f71b commit a04ffdd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/core/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {
NextConfig
import {
type NextConfig
} from "next";
import bundleAnalyzer from "@next/bundle-analyzer";
const nextConfig: NextConfig = bundleAnalyzer({
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/app/index/buttonCommonSorting.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use client";
import {
tool
type tool
} from "tools/info";
import {
lists as listsType
type lists as listsType
} from './Sidebar';
import {
useContext
Expand Down
5 changes: 2 additions & 3 deletions packages/core/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
useMemo,
useState
} from 'react';
import type {
ThemeHaveZIndex
import {
type ThemeHaveZIndex
} from 'setting/layout';
import {
drawerWidth
Expand Down Expand Up @@ -62,7 +62,6 @@ export default function Index(props: {
setExpand?: setState<boolean>;
}): JSX.Element {
const realTools = getTools(get),
searchParams = useSearchParams(),
extensionTools = useContext(extensions).value,
toolsList = useToolsList(realTools),
showSidebar = useContext(showSidebarContext),
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/app/setting/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ import {
Extension as ExtensionIcon,
Palette as PaletteIcon
} from "@mui/icons-material";
import type VerkfiIcon from 'components/verkfiIcon/verkfiIcon';
import {
type default as VerkfiIcon
} from 'components/verkfiIcon/verkfiIcon';
import {
drawerWidth
} from './consts';
Expand Down
6 changes: 4 additions & 2 deletions packages/core/src/app/tools/info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import {
import {
SvgIconTypeMap
} from "@mui/material";
import type i18n from "react-intl-universal";
import {
type get as intlGet
} from "react-intl-universal";
import {
FC
} from "react";
Expand Down Expand Up @@ -78,7 +80,7 @@ export interface tool extends noIconTool {
}) | FC;

}
export const getTools = (get: typeof i18n.get): tool[] => {
export const getTools = (get: typeof intlGet): tool[] => {
return [
{
name: "AudioTools",
Expand Down

0 comments on commit a04ffdd

Please sign in to comment.