diff --git a/src/pages/index.less b/src/pages/index.less
index 586302b..d7ac292 100644
--- a/src/pages/index.less
+++ b/src/pages/index.less
@@ -1,3 +1,5 @@
.title {
- background: rgb(121, 242, 157);
+ margin: 100px auto;
+ text-align: center;
+ // background: rgb(121, 242, 157);
}
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index cc86886..102dc56 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,9 +1,9 @@
import styles from './index.less';
-export default () => {
+export default function () {
return (
-
index
+ welcome! there is nicecode!
);
-};
+}
diff --git a/src/styles/index.less b/src/styles/index.less
index 4193fae..5b4f350 100644
--- a/src/styles/index.less
+++ b/src/styles/index.less
@@ -1 +1 @@
-@import "./var.less";
+@import './var.less';
diff --git a/src/styles/reset.less b/src/styles/reset.less
index 014fb2f..546489c 100644
--- a/src/styles/reset.less
+++ b/src/styles/reset.less
@@ -1,15 +1,15 @@
-@import "var.less";
+@import 'var.less';
.ant-picker {
- width: 100%;
+ width: 100%;
}
.ant-pagination {
- display: flex;
- justify-content: flex-end;
- width: 100%;
+ display: flex;
+ justify-content: flex-end;
+ width: 100%;
- &-total-text {
- flex: 1;
- }
+ &-total-text {
+ flex: 1;
+ }
}
diff --git a/src/wrappers/SecurityWrapper.tsx b/src/wrappers/SecurityWrapper.tsx
index 1a88773..4dca388 100644
--- a/src/wrappers/SecurityWrapper.tsx
+++ b/src/wrappers/SecurityWrapper.tsx
@@ -5,6 +5,7 @@ import { ConnectState } from '@/models/connect';
export interface SecurityWrapperProps {
token: string;
dispatch: Dispatch;
+ children: React.ReactNode
}
const SecurityWrapper: React.FC
= ({
diff --git a/tsconfig.json b/tsconfig.json
index 4c9e695..0826fd4 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,34 +1,26 @@
{
- "compilerOptions": {
- "outDir": "build/dist",
- "module": "esnext",
- "target": "esnext",
- "lib": ["esnext", "dom"],
- "sourceMap": true,
- "baseUrl": ".",
- "jsx": "react-jsx",
- "allowSyntheticDefaultImports": true,
- "moduleResolution": "node",
- "forceConsistentCasingInFileNames": true,
- "noImplicitReturns": true,
- "suppressImplicitAnyIndexErrors": true,
- "noUnusedLocals": true,
- "allowJs": true,
- "skipLibCheck": true,
- "experimentalDecorators": true,
- "strict": true,
- "paths": {
- "@/*": ["./src/*"],
- "@@/*": ["./src/.umi/*"]
- }
- },
- "exclude": [
- "node_modules",
- "build",
- "dist",
- "scripts",
- "src/.umi/*",
- "webpack",
- "jest"
- ]
+ "compilerOptions": {
+ "outDir": "build/dist",
+ "module": "esnext",
+ "target": "esnext",
+ "lib": ["esnext", "dom"],
+ "sourceMap": true,
+ "baseUrl": ".",
+ "jsx": "react-jsx",
+ "allowSyntheticDefaultImports": true,
+ "moduleResolution": "node",
+ "forceConsistentCasingInFileNames": true,
+ "noImplicitReturns": true,
+ "suppressImplicitAnyIndexErrors": true,
+ "noUnusedLocals": true,
+ "allowJs": true,
+ "skipLibCheck": true,
+ "experimentalDecorators": true,
+ "strict": true,
+ "paths": {
+ "@/*": ["./src/*"],
+ "@@/*": ["./src/.umi/*"]
+ }
+ },
+ "exclude": ["node_modules", "build", "dist", "scripts", "src/.umi/*", "webpack", "jest"]
}
diff --git a/typings.d.ts b/typings.d.ts
index 26fbdfa..367c061 100644
--- a/typings.d.ts
+++ b/typings.d.ts
@@ -3,3 +3,4 @@ declare module '*.less';
declare module '*.png';
declare module '*.jpeg';
declare module '*.jpg';
+declare module 'immer'