mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 17:05:43 +01:00
added more typings and some layout fixes
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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()}
|
||||
|
||||
@@ -5,8 +5,8 @@ import classNames from "classnames";
|
||||
|
||||
type Props = {
|
||||
value: string,
|
||||
disabled: boolean,
|
||||
isLoading: boolean,
|
||||
disabled?: boolean,
|
||||
isLoading?: boolean,
|
||||
large?: boolean,
|
||||
fullWidth?: boolean
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user