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 = {
t: string => string,
repositoriesLink: String,
usersLink: String,
groupsLink: String,
configLink: String,
logoutLink: String
repositoriesLink: string,
usersLink: string,
groupsLink: string,
configLink: string,
logoutLink: string
};
class PrimaryNavigation extends React.Component<Props> {

View File

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

View File

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