mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
use string instead of String
This commit is contained in:
@@ -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> {
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
import type { Links } from "./hal";
|
||||
|
||||
export type IndexResources = {
|
||||
version: String,
|
||||
version: string,
|
||||
_links: Links
|
||||
};
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user