File tree Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React, { useCallback } from 'react'
2
2
import { faSearch } from '@fortawesome/free-solid-svg-icons'
3
3
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
4
4
import { toggleSwitcher } from 'src/store/features/switcher'
5
- import { CButton } from '@coreui/react'
5
+ import { CButton , CTooltip } from '@coreui/react'
6
6
import { useDispatch } from 'react-redux'
7
7
8
8
const AppHeaderSearch = ( ) => {
@@ -12,9 +12,11 @@ const AppHeaderSearch = () => {
12
12
} , [ dispatch ] )
13
13
return (
14
14
< >
15
- < CButton variant = "ghost" onClick = { handleFastSwitcher } >
16
- < FontAwesomeIcon icon = { faSearch } size = "lg" />
17
- </ CButton >
15
+ < CTooltip content = "Search" placement = "bottom" >
16
+ < CButton variant = "ghost" onClick = { handleFastSwitcher } >
17
+ < FontAwesomeIcon icon = { faSearch } size = "lg" />
18
+ </ CButton >
19
+ </ CTooltip >
18
20
</ >
19
21
)
20
22
}
Original file line number Diff line number Diff line change @@ -3,17 +3,13 @@ import { useSelector, useDispatch } from 'react-redux'
3
3
import {
4
4
CAlert ,
5
5
CAlertLink ,
6
- CContainer ,
7
- CCollapse ,
8
6
CHeader ,
9
7
CHeaderNav ,
10
8
CNavItem ,
11
9
CHeaderToggler ,
12
- CImage ,
13
- CSidebarBrand ,
14
10
CButton ,
15
11
CFormSwitch ,
16
- CLink ,
12
+ CTooltip ,
17
13
} from '@coreui/react'
18
14
import { AppHeaderSearch } from 'src/components/header'
19
15
import { CippActionsOffcanvas , TenantSelector } from '../utilities'
@@ -142,18 +138,22 @@ const AppHeader = () => {
142
138
target = "_blank"
143
139
href = { `https://docs.cipp.app/user-documentation${ location . pathname } ` }
144
140
>
145
- < CButton variant = "ghost" >
146
- < FontAwesomeIcon icon = { 'question' } size = "lg" />
147
- </ CButton >
141
+ < CTooltip content = "Documentation" placement = "bottom" >
142
+ < CButton variant = "ghost" >
143
+ < FontAwesomeIcon icon = { 'question' } size = "lg" />
144
+ </ CButton >
145
+ </ CTooltip >
148
146
</ a >
149
147
</ CNavItem >
150
148
< CNavItem >
151
149
< AppHeaderSearch />
152
150
</ CNavItem >
153
151
< CNavItem >
154
- < CButton variant = "ghost" onClick = { ( ) => loadCippQueue ( ) } >
155
- < FontAwesomeIcon icon = { 'history' } className = "me-2" />
156
- </ CButton >
152
+ < CTooltip content = "Recent Jobs" placement = "bottom" >
153
+ < CButton variant = "ghost" onClick = { ( ) => loadCippQueue ( ) } className = "me-1" >
154
+ < FontAwesomeIcon icon = { 'history' } size = "lg" />
155
+ </ CButton >
156
+ </ CTooltip >
157
157
</ CNavItem >
158
158
< CNavItem >
159
159
< div className = "custom-switch-wrapper primary" >
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import {
13
13
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
14
14
import { CippPageList } from 'src/components/layout'
15
15
import { Link } from 'react-router-dom'
16
- import { CippActionsOffcanvas } from 'src/components/utilities'
16
+ import { CippActionsOffcanvas , CippCodeBlock } from 'src/components/utilities'
17
17
import { TitleButton } from 'src/components/buttons'
18
18
19
19
const Actions = ( row , rowIndex , formatExtraData ) => {
@@ -116,7 +116,7 @@ const IntuneList = () => {
116
116
// eslint-disable-next-line react/prop-types
117
117
const ExpandedComponent = ( { data } ) => (
118
118
// eslint-disable-next-line react/prop-types
119
- < pre > { JSON . stringify ( data , null , 2 ) } </ pre >
119
+ < CippCodeBlock code = { JSON . stringify ( data , null , 2 ) } language = "json" / >
120
120
)
121
121
122
122
return (
You can’t perform that action at this time.
0 commit comments