diff options
author | eug-vs <eug-vs@keemail.me> | 2020-03-21 14:32:21 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-03-21 14:32:21 +0300 |
commit | bfc2a9bc3c1ecbef31e76e36fed79a8500f0d0fd (patch) | |
tree | e7255978f05da6d39f094fef1b61925f727e78c0 | |
parent | f4d8ee37400f25d4fec3638b1ba73e8661c30959 (diff) | |
download | chrono-cube-ui-bfc2a9bc3c1ecbef31e76e36fed79a8500f0d0fd.tar.gz |
chore: migrate Contribute page
-rw-r--r-- | src/pages/Contribute/Contribute.tsx (renamed from src/pages/Contribute/Contribute.js) | 5 | ||||
-rw-r--r-- | src/types.d.ts | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/pages/Contribute/Contribute.js b/src/pages/Contribute/Contribute.tsx index aa1c3f7..854c5c1 100644 --- a/src/pages/Contribute/Contribute.js +++ b/src/pages/Contribute/Contribute.tsx @@ -16,6 +16,7 @@ import BugReportIcon from '@material-ui/icons/BugReport'; import NewReleasesIcon from '@material-ui/icons/NewReleases'; import { Window, ContentSection } from 'react-benzin'; +import { Developer } from '../../types'; const useStyles = makeStyles(theme => ({ @@ -31,10 +32,10 @@ const useStyles = makeStyles(theme => ({ })); -const developers = require('../../developers.json'); +const developers: Developer[] = require('../../developers.json'); -const Contribute = () => { +const Contribute: React.FC = () => { const classes = useStyles(); return ( diff --git a/src/types.d.ts b/src/types.d.ts index cfc60bc..fb3d86e 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -10,3 +10,7 @@ export interface Solution { author: User; } +export interface Developer { + username: string; + role: string; +} |