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 = {
|
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> {
|
||||||
|
|||||||
@@ -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
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user