Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
remove ui/autoload/styles (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenlan-amzn authored Aug 26, 2020
1 parent f4dac20 commit 4960ddd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions public/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { uiModules } from 'ui/modules';
import { HashRouter as Router, Route } from 'react-router-dom';

import 'react-vis/dist/style.css';
import 'ui/autoload/styles';
import './less/main.less';
import Main from './pages/Main';
import { AppContext } from './utils/AppContext';
Expand All @@ -35,15 +34,15 @@ if (darkMode) {
require('@elastic/charts/dist/theme_only_light.css');
}

app.config($locationProvider => {
app.config(($locationProvider) => {
$locationProvider.html5Mode({
enabled: false,
requireBase: false,
rewriteLinks: false,
});
});

app.config(stateManagementConfigProvider => stateManagementConfigProvider.disable());
app.config((stateManagementConfigProvider) => stateManagementConfigProvider.disable());

function RootController($scope, $element, $http) {
const domNode = $element[0];
Expand All @@ -52,7 +51,7 @@ function RootController($scope, $element, $http) {
render(
<Router>
<AppContext.Provider value={{ httpClient: $http, darkMode }}>
<Route render={props => <Main title="Alerting" httpClient={$http} {...props} />} />
<Route render={(props) => <Main title="Alerting" httpClient={$http} {...props} />} />
</AppContext.Provider>
</Router>,
domNode
Expand Down

0 comments on commit 4960ddd

Please sign in to comment.