Skip to content

Commit 1bdc5ac

Browse files
committed
fix(configprovier): update ConfigProvider ts and en locale text
1 parent 598da52 commit 1bdc5ac

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/configProvider/index.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
import React from 'react';
22

3-
import { LocaleContext, LocaleContextProps } from '../locale/useLocale';
3+
import { Locale, LocaleContext } from '../locale/useLocale';
44

5-
const ConfigProvider = ({
6-
locale,
7-
children,
8-
}: {
9-
locale: LocaleContextProps;
10-
children: React.ReactNode;
11-
}) => {
12-
return <LocaleContext.Provider value={{ ...locale }}>{children}</LocaleContext.Provider>;
5+
const ConfigProvider = ({ locale, children }: { locale: Locale; children: React.ReactNode }) => {
6+
return <LocaleContext.Provider value={{ locale }}>{children}</LocaleContext.Provider>;
137
};
148

159
export default ConfigProvider;

src/locale/en-US.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const localeValues: Locale = {
2222
LoadError: {
2323
please: 'A new version has been found. Please',
2424
get: 'to get the new version.',
25-
refresh: 'refresh',
25+
refresh: ' refresh ',
2626
title: 'If this prompt persists for a long time, please contact the administrator.',
2727
},
2828
Modal: {

0 commit comments

Comments
 (0)