1
1
// @ts -nocheck
2
2
import React from 'react' ;
3
3
import { useHistory } from 'react-router' ;
4
- import {
5
- Navbar ,
6
- NavbarGroup ,
7
- NavbarDivider ,
8
- Button ,
9
- Classes ,
10
- Tooltip ,
11
- Position ,
12
- } from '@blueprintjs/core' ;
4
+ import { Navbar , NavbarGroup , NavbarDivider , Button , Classes , Tooltip , Position } from '@blueprintjs/core' ;
13
5
import { FormattedMessage as T , Icon , Hint , If } from '@/components' ;
14
6
15
7
import DashboardTopbarUser from '@/components/Dashboard/TopbarUser' ;
@@ -53,28 +45,22 @@ function DashboardTopbar({
53
45
} ;
54
46
55
47
return (
56
- < div class = "dashboard__topbar" data-testId = { 'dashboard-topbar' } >
57
- < div class = "dashboard__topbar-left" >
58
- < div class = "dashboard__topbar-sidebar-toggle" >
48
+ < div className = "dashboard__topbar" data-testId = { 'dashboard-topbar' } >
49
+ < div className = "dashboard__topbar-left" >
50
+ < div className = "dashboard__topbar-sidebar-toggle" >
59
51
< Tooltip
60
- content = {
61
- ! sidebarExpended ? (
62
- < T id = { 'open_sidebar' } />
63
- ) : (
64
- < T id = { 'close_sidebar' } />
65
- )
66
- }
52
+ content = { ! sidebarExpended ? < T id = { 'open_sidebar' } /> : < T id = { 'close_sidebar' } /> }
67
53
position = { Position . RIGHT }
68
54
>
69
55
< DashboardHamburgerButton onClick = { handleSidebarToggleBtn } />
70
56
</ Tooltip >
71
57
</ div >
72
58
73
- < div class = "dashboard__title" >
59
+ < div className = "dashboard__title" >
74
60
< h1 > { pageTitle } </ h1 >
75
61
76
62
< If condition = { pageHint } >
77
- < div class = "dashboard__hint" >
63
+ < div className = "dashboard__hint" >
78
64
< Hint content = { pageHint } />
79
65
</ div >
80
66
</ If >
@@ -88,28 +74,20 @@ function DashboardTopbar({
88
74
</ If >
89
75
</ div >
90
76
91
- < div class = "dashboard__breadcrumbs" >
77
+ < div className = "dashboard__breadcrumbs" >
92
78
< DashboardBreadcrumbs />
93
79
</ div >
94
80
< DashboardBackLink />
95
81
</ div >
96
82
97
- < div class = "dashboard__topbar-right" >
98
- < Navbar class = "dashboard__topbar-navbar" >
83
+ < div className = "dashboard__topbar-right" >
84
+ < Navbar className = "dashboard__topbar-navbar" >
99
85
< NavbarGroup >
100
- < DashboardQuickSearchButton
101
- onClick = { ( ) => openGlobalSearch ( true ) }
102
- />
86
+ < DashboardQuickSearchButton onClick = { ( ) => openGlobalSearch ( true ) } />
103
87
< QuickNewDropdown />
104
88
105
- < Tooltip
106
- content = { < T id = { 'notifications' } /> }
107
- position = { Position . BOTTOM }
108
- >
109
- < Button
110
- className = { Classes . MINIMAL }
111
- icon = { < Icon icon = { 'notification-24' } iconSize = { 20 } /> }
112
- />
89
+ < Tooltip content = { < T id = { 'notifications' } /> } position = { Position . BOTTOM } >
90
+ < Button className = { Classes . MINIMAL } icon = { < Icon icon = { 'notification-24' } iconSize = { 20 } /> } />
113
91
</ Tooltip >
114
92
115
93
< Button
@@ -121,7 +99,7 @@ function DashboardTopbar({
121
99
</ NavbarGroup >
122
100
</ Navbar >
123
101
124
- < div class = "dashboard__topbar-user" >
102
+ < div className = "dashboard__topbar-user" >
125
103
< DashboardTopbarUser />
126
104
</ div >
127
105
</ div >
0 commit comments