use string instead of String

This commit is contained in:
Maren Süwer
2018-10-18 08:25:24 +02:00
parent 2f0bdba9e6
commit d6bc1e2fda
3 changed files with 9 additions and 7 deletions

View File

@@ -5,11 +5,11 @@ import PrimaryNavigationLink from "./PrimaryNavigationLink";
type Props = { type Props = {
t: string => string, t: string => string,
repositoriesLink: String, repositoriesLink: string,
usersLink: String, usersLink: string,
groupsLink: String, groupsLink: string,
configLink: String, configLink: string,
logoutLink: String logoutLink: string
}; };
class PrimaryNavigation extends React.Component<Props> { class PrimaryNavigation extends React.Component<Props> {

View File

@@ -2,6 +2,6 @@
import type { Links } from "./hal"; import type { Links } from "./hal";
export type IndexResources = { export type IndexResources = {
version: String, version: string,
_links: Links _links: Links
}; };

View File

@@ -53,7 +53,9 @@ type Props = {
class App extends Component<Props> { class App extends Component<Props> {
componentDidMount() { componentDidMount() {
if (this.props.meLink) this.props.fetchMe(this.props.meLink); if (this.props.meLink) {
this.props.fetchMe(this.props.meLink);
}
} }
render() { render() {