From bda9704e10dc92d0cf613dbaa99b48d31bb90581 Mon Sep 17 00:00:00 2001 From: Toni Dezman Date: Tue, 22 Aug 2017 10:11:47 +0200 Subject: [PATCH] changess to settings/app.jsx --- app/javascript/packs/src/settings/app.jsx | 30 ++++++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/app/javascript/packs/src/settings/app.jsx b/app/javascript/packs/src/settings/app.jsx index 5449c561e..e38d98455 100644 --- a/app/javascript/packs/src/settings/app.jsx +++ b/app/javascript/packs/src/settings/app.jsx @@ -1,14 +1,19 @@ import React from "react"; import ReactDOM from "react-dom"; +import { BrowserRouter, Route, Switch, Redirect } from "react-router-dom"; import { Provider } from "react-redux"; -import { IntlProvider } from "react-intl"; -import { addLocaleData } from "react-intl"; +import { IntlProvider, addLocaleData } from "react-intl"; import enLocaleData from "react-intl/locale-data/en"; + import { flattenMessages } from "../../locales/utils"; import store from "../../app/store"; import messages from "../../locales/messages"; import Navigation from "../../shared/navigation"; +import NotFound from "../../shared/404/NotFound"; +import MainNav from "./components/MainNav"; +import SettingsAccount from "./components/SettingsAccount"; +import SettingsTeams from "./components/SettingsTeams"; addLocaleData([...enLocaleData]); const locale = "en-US"; @@ -16,7 +21,20 @@ const locale = "en-US"; const SettingsPage = () =>
- .... +
+ + + + } + /> + + + + +
; document.addEventListener("DOMContentLoaded", () => { @@ -26,7 +44,11 @@ document.addEventListener("DOMContentLoaded", () => { locale={locale} messages={flattenMessages(messages[locale])} > - +
+ + + +
, document.getElementById("root")