moved components to TypeScript

This commit is contained in:
muerwre 2019-02-12 16:20:31 +07:00
parent 85b8860862
commit 0a01c91271
54 changed files with 2771 additions and 5134 deletions

View file

@ -1,5 +1,5 @@
// @flow
import React from 'react';
import * as React from 'react';
import { Icon } from '$components/panels/Icon';
type Props = {

View file

@ -1,10 +1,10 @@
// @flow
import React from 'react';
import * as React from 'react';
import { UserPicture } from '$components/user/UserPicture';
import type { UserType } from '$constants/types';
import { IUser } from '$constants/auth';
type Props = {
user: UserType,
user: IUser,
setMenuOpened: Function,
};

View file

@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import { APP_INFO } from '$constants/app_info';
type Props = {

View file

@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
export const UserPicture = ({ photo }) => (
<div