// @flow import React from "react"; import { translate } from "react-i18next"; import { Route } from "react-router"; import { Page } from "../../components/layout"; import { Navigation, NavLink, Section } from "../../components/navigation"; import GlobalConfig from "./GlobalConfig"; import type { History } from "history"; type Props = { // context objects t: string => string, match: any, history: History }; class Config extends React.Component { stripEndingSlash = (url: string) => { if (url.endsWith("/")) { return url.substring(0, url.length - 2); } return url; }; matchedUrl = () => { return this.stripEndingSlash(this.props.match.url); }; render() { const { t } = this.props; const url = this.matchedUrl(); return (
); } } export default translate("config")(Config);