forked from abner/for-legacy-web
Add Redux and reducers.
Load i18n files and add dayjs.
This commit is contained in:
15
src/context/index.tsx
Normal file
15
src/context/index.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import State from "../redux/State";
|
||||
import { Children } from "../types/Preact";
|
||||
|
||||
import Locale from "./Locale";
|
||||
import Theme from "./Theme";
|
||||
|
||||
export default function Context({ children }: { children: Children }) {
|
||||
return (
|
||||
<State>
|
||||
<Locale>
|
||||
<Theme>{children}</Theme>
|
||||
</Locale>
|
||||
</State>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user