fix(ui) - ui review fixes
This commit is contained in:
parent
c5b0d0fc82
commit
970e230dbc
5 changed files with 9 additions and 10 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import React, { useEffect } from 'react';
|
||||
import withPageTitle from 'HOCs/withPageTitle';
|
||||
import { observer, useObserver } from "mobx-react-lite";
|
||||
import { useObserver } from "mobx-react-lite";
|
||||
import { useStore } from 'App/mstore';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import DashboardSideMenu from './components/DashboardSideMenu';
|
||||
|
|
@ -36,4 +35,4 @@ function NewDashboard(props) {
|
|||
));
|
||||
}
|
||||
|
||||
export default withPageTitle('New Dashboard')(withRouter(NewDashboard));
|
||||
export default withRouter(NewDashboard);
|
||||
|
|
@ -12,6 +12,7 @@ import DashboardModal from '../DashboardModal';
|
|||
import DashboardEditModal from '../DashboardEditModal';
|
||||
import DateRange from 'Shared/DateRange';
|
||||
import AlertFormModal from 'App/components/Alerts/AlertFormModal';
|
||||
import withPageTitle from 'HOCs/withPageTitle';
|
||||
|
||||
interface Props {
|
||||
siteId: number;
|
||||
|
|
@ -125,4 +126,4 @@ function DashboardView(props: Props) {
|
|||
));
|
||||
}
|
||||
|
||||
export default withRouter(withModal(DashboardView));
|
||||
export default withPageTitle('Dashboards - OpenReplay')(withRouter(withModal(DashboardView)));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { Button, PageTitle, Icon, Link } from 'UI';
|
||||
import { withSiteId, metricCreate } from 'App/routes';
|
||||
import withPageTitle from 'HOCs/withPageTitle';
|
||||
import MetricsList from '../MetricsList';
|
||||
import MetricsSearch from '../MetricsSearch';
|
||||
import { useStore } from 'App/mstore';
|
||||
|
|
@ -34,4 +34,4 @@ function MetricsView(props: Props) {
|
|||
));
|
||||
}
|
||||
|
||||
export default MetricsView;
|
||||
export default withPageTitle('Metrics - OpenReplay')(MetricsView);
|
||||
|
|
@ -104,7 +104,7 @@ const Header = (props) => {
|
|||
className={ styles.nav }
|
||||
activeClassName={ styles.active }
|
||||
>
|
||||
<span>{ 'Dashboard' }</span>
|
||||
<span>{ 'Dashboards' }</span>
|
||||
</NavLink>
|
||||
<div className={ styles.right }>
|
||||
<Announcements />
|
||||
|
|
|
|||
|
|
@ -221,11 +221,10 @@ export default class DashboardStore implements IDashboardSotre {
|
|||
runInAction(() => {
|
||||
if (isCreating) {
|
||||
toast.success('Dashboard created successfully')
|
||||
this.addDashboard(_dashboard)
|
||||
console.log('_dashboard', _dashboard)
|
||||
this.addDashboard(new Dashboard().fromJson(_dashboard))
|
||||
} else {
|
||||
toast.success('Dashboard updated successfully')
|
||||
this.updateDashboard(_dashboard)
|
||||
this.updateDashboard(new Dashboard().fromJson(_dashboard))
|
||||
}
|
||||
resolve(_dashboard)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue