fix(ui): fix dashboards button
This commit is contained in:
parent
f6c9cf172b
commit
a1872ca678
3 changed files with 6 additions and 6 deletions
|
|
@ -17,10 +17,10 @@ function AlertsView({ siteId, init }: IAlertsView) {
|
|||
return (
|
||||
<div style={{ maxWidth: '1300px', margin: 'auto'}} className="bg-white rounded py-4 border">
|
||||
<div className="flex items-center mb-4 justify-between px-6">
|
||||
<Link to={withSiteId(alertCreate(), siteId)}><Button variant="primary" onClick={null}>Create</Button></Link>
|
||||
<div className="flex items-baseline ml-3">
|
||||
<div className="flex items-baseline mr-3">
|
||||
<PageTitle title="Alerts" />
|
||||
</div>
|
||||
<Link to={withSiteId(alertCreate(), siteId)}><Button variant="primary" onClick={null}>Create</Button></Link>
|
||||
<div className="ml-auto w-1/4" style={{ minWidth: 300 }}>
|
||||
<AlertsSearch />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -23,10 +23,10 @@ function DashboardsView({ history, siteId }: { history: any, siteId: string }) {
|
|||
return (
|
||||
<div style={{ maxWidth: '1300px', margin: 'auto'}} className="bg-white rounded py-4 border">
|
||||
<div className="flex items-center mb-4 justify-between px-6">
|
||||
<Button variant="primary" onClick={onAddDashboardClick}>Create</Button>
|
||||
<div className="flex items-baseline ml-3">
|
||||
<div className="flex items-baseline mr-3">
|
||||
<PageTitle title="Dashboards" />
|
||||
</div>
|
||||
<Button variant="primary" onClick={onAddDashboardClick}>Create</Button>
|
||||
<div className="ml-auto w-1/4" style={{ minWidth: 300 }}>
|
||||
<DashboardSearch />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ function MetricsView({ siteId }: Props) {
|
|||
return useObserver(() => (
|
||||
<div style={{ maxWidth: '1300px', margin: 'auto'}} className="bg-white rounded py-4 border">
|
||||
<div className="flex items-center mb-4 justify-between px-6">
|
||||
<Link to={'/metrics/create'}><Button variant="primary">Create</Button></Link>
|
||||
<div className="flex items-baseline ml-3">
|
||||
<div className="flex items-baseline mr-3">
|
||||
<PageTitle title="Metrics" className="" />
|
||||
</div>
|
||||
<Link to={'/metrics/create'}><Button variant="primary">Create</Button></Link>
|
||||
<div className="ml-auto w-1/4" style={{ minWidth: 300 }}>
|
||||
<MetricsSearch />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue