From d71e58b72327d9b199443a61328ba47c69ad1db2 Mon Sep 17 00:00:00 2001 From: sinthuja Date: Fri, 15 Sep 2017 12:47:36 +0530 Subject: [PATCH] Cleaning and removing the themes package usage. --- .../src/main/resources/store/src/App.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/src/main/resources/store/src/App.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/src/main/resources/store/src/App.jsx index 5786ced341..16f66083d4 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/src/main/resources/store/src/App.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/src/main/resources/store/src/App.jsx @@ -18,7 +18,7 @@ import React, {Component} from 'react'; import createHistory from 'history/createBrowserHistory'; -import {BrowserRouter as Router, Redirect, Route, Switch} from 'react-router-dom' +import {BrowserRouter as Router, Route, Switch} from 'react-router-dom' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Login from './components/Login'; @@ -36,9 +36,6 @@ let muiTheme = null; if (theme.current === "default") { let defaultTheme = require("material-ui/styles/baseThemes/" + theme.default); muiTheme = getMuiTheme(defaultTheme.default); -} else { - let customTheme = require("./themes/" + theme.custom); - muiTheme = getMuiTheme(customTheme.default); } /** @@ -55,8 +52,6 @@ if (theme.current === "default") { * not want to serve the URL. * */ class Base extends Component { - - render() { return (