added more typings and some layout fixes

This commit is contained in:
Sebastian Sdorra
2018-07-12 08:23:24 +02:00
parent ed077f704f
commit bf62eee4d5
10 changed files with 37 additions and 27 deletions

View File

@@ -1,16 +1,17 @@
//@flow
import React from "react";
import type { Me } from "../types/me";
type Props = {
me: any
me: Me
};
class Footer extends React.Component<Props> {
render() {
return (
<footer class="footer">
<div class="container is-centered">
<p class="has-text-centered">{this.props.me.username}</p>
<footer className="footer">
<div className="container is-centered">
<p className="has-text-centered">{this.props.me.username}</p>
</div>
</footer>
);

View File

@@ -24,7 +24,7 @@ class Notification extends React.Component<Props> {
}
render() {
const { type, children, onClose } = this.props;
const { type, children } = this.props;
return (
<div className={classNames("notification", "is-" + type)}>
{this.renderCloseButton()}

View File

@@ -5,8 +5,8 @@ import classNames from "classnames";
type Props = {
value: string,
disabled: boolean,
isLoading: boolean,
disabled?: boolean,
isLoading?: boolean,
large?: boolean,
fullWidth?: boolean
};