mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
chore(ui): migrate more code to typescript
This commit is contained in:
committed by
Łukasz Mierzwa
parent
55170f8812
commit
4d4dd111c1
@@ -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
|
||||
Reference in New Issue
Block a user