Skip to content

Commit e43e018

Browse files
committed
fix(layout): 🐛 tabsPage
- FormattedMessage 组件引入路径修改 closed #1
1 parent e9ce525 commit e43e018

File tree

4 files changed

+58
-4
lines changed

4 files changed

+58
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"crypto-js": "^4.2.0",
6363
"czg": "^1.10.1",
6464
"eslint": "^9.10.0",
65+
"eslint-plugin-prettier": "^5.2.1",
6566
"eslint-plugin-react-hooks": "^4.6.2",
6667
"eslint-plugin-react-refresh": "^0.4.12",
6768
"husky": "^9.1.1",

pnpm-lock.yaml

Lines changed: 55 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/layout/components/AppMain/TabsPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { FormattedMessage } from '@/components/FormattedMessage';
12
import { useRouteList } from '@/hooks/useRouteList';
23
import { useRefresh } from '@/hooks/web/useRefresh';
3-
import { FormattedMessage } from '@/locales';
44
import { defaultRoute } from '@/router/modules';
55
import { findRouteByPath } from '@/router/utils';
66
import { useAppSelector } from '@/store/hooks';

src/locales/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface Props extends MessageDescriptor {
1616
id: LocaleId;
1717
}
1818

19-
type FormatMessageProps = (descriptor: Props) => string;
19+
export type FormatMessageProps = (descriptor: Props) => string;
2020

2121
export const useLocale = () => {
2222
const { formatMessage: intlFormatMessage, ...rest } = useIntl();

0 commit comments

Comments
 (0)