diff options
Diffstat (limited to 'src')
-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; +} |