chore(ui): migrate more code to typescript

This commit is contained in:
Łukasz Mierzwa
2020-06-29 16:14:53 +01:00
committed by Łukasz Mierzwa
parent 55170f8812
commit 4d4dd111c1
36 changed files with 392 additions and 205 deletions

View File

@@ -1,10 +1,13 @@
import React from "react";
import React, { FC, ReactNode } from "react";
import { CSSTransition } from "react-transition-group";
import { ThemeContext } from "Components/Theme";
const CenteredMessage = ({ children, className }) => {
const CenteredMessage: FC<{
children: ReactNode;
className: string;
}> = ({ children, className }) => {
const context = React.useContext(ThemeContext);
return (
<CSSTransition