mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
set title in global config and not in general config component
This commit is contained in:
@@ -32,7 +32,7 @@ class Config extends React.Component<Props> {
|
|||||||
const url = this.matchedUrl();
|
const url = this.matchedUrl();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page title={t("config.title")}>
|
<Page>
|
||||||
<div className="columns">
|
<div className="columns">
|
||||||
<div className="column is-three-quarters">
|
<div className="column is-three-quarters">
|
||||||
<Route path={url} exact component={() => <GlobalConfig />} />
|
<Route path={url} exact component={() => <GlobalConfig />} />
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Page } from "../../components/layout";
|
|
||||||
import type { History } from "history";
|
|
||||||
import { translate } from "react-i18next";
|
import { translate } from "react-i18next";
|
||||||
|
import Title from "../../components/layout/Title";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
// context objects
|
// context objects
|
||||||
@@ -12,7 +11,7 @@ class GlobalConfig extends React.Component<Props> {
|
|||||||
render() {
|
render() {
|
||||||
const { t } = this.props;
|
const { t } = this.props;
|
||||||
|
|
||||||
return <div>Here, global config will be shown</div>;
|
return <Title title={t("config.title")} />;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user