Skip to content

Commit

Permalink
Merge pull request #2216 from JohnDuprey/dev
Browse files Browse the repository at this point in the history
More UI Tweaks
  • Loading branch information
JohnDuprey committed Mar 14, 2024
2 parents f5c816c + 377a662 commit c4f220b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
10 changes: 6 additions & 4 deletions src/components/header/AppHeaderSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useCallback } from 'react'
import { faSearch } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { toggleSwitcher } from 'src/store/features/switcher'
import { CButton } from '@coreui/react'
import { CButton, CTooltip } from '@coreui/react'
import { useDispatch } from 'react-redux'

const AppHeaderSearch = () => {
Expand All @@ -12,9 +12,11 @@ const AppHeaderSearch = () => {
}, [dispatch])
return (
<>
<CButton variant="ghost" onClick={handleFastSwitcher}>
<FontAwesomeIcon icon={faSearch} size="lg" />
</CButton>
<CTooltip content="Search" placement="bottom">
<CButton variant="ghost" onClick={handleFastSwitcher}>
<FontAwesomeIcon icon={faSearch} size="lg" />
</CButton>
</CTooltip>
</>
)
}
Expand Down
22 changes: 11 additions & 11 deletions src/components/layout/AppHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ import { useSelector, useDispatch } from 'react-redux'
import {
CAlert,
CAlertLink,
CContainer,
CCollapse,
CHeader,
CHeaderNav,
CNavItem,
CHeaderToggler,
CImage,
CSidebarBrand,
CButton,
CFormSwitch,
CLink,
CTooltip,
} from '@coreui/react'
import { AppHeaderSearch } from 'src/components/header'
import { CippActionsOffcanvas, TenantSelector } from '../utilities'
Expand Down Expand Up @@ -142,18 +138,22 @@ const AppHeader = () => {
target="_blank"
href={`https://docs.cipp.app/user-documentation${location.pathname}`}
>
<CButton variant="ghost">
<FontAwesomeIcon icon={'question'} size="lg" />
</CButton>
<CTooltip content="Documentation" placement="bottom">
<CButton variant="ghost">
<FontAwesomeIcon icon={'question'} size="lg" />
</CButton>
</CTooltip>
</a>
</CNavItem>
<CNavItem>
<AppHeaderSearch />
</CNavItem>
<CNavItem>
<CButton variant="ghost" onClick={() => loadCippQueue()}>
<FontAwesomeIcon icon={'history'} className="me-2" />
</CButton>
<CTooltip content="Recent Jobs" placement="bottom">
<CButton variant="ghost" onClick={() => loadCippQueue()} className="me-1">
<FontAwesomeIcon icon={'history'} size="lg" />
</CButton>
</CTooltip>
</CNavItem>
<CNavItem>
<div className="custom-switch-wrapper primary">
Expand Down
4 changes: 2 additions & 2 deletions src/views/endpoint/intune/MEMListPolicies.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { CippPageList } from 'src/components/layout'
import { Link } from 'react-router-dom'
import { CippActionsOffcanvas } from 'src/components/utilities'
import { CippActionsOffcanvas, CippCodeBlock } from 'src/components/utilities'
import { TitleButton } from 'src/components/buttons'

const Actions = (row, rowIndex, formatExtraData) => {
Expand Down Expand Up @@ -116,7 +116,7 @@ const IntuneList = () => {
// eslint-disable-next-line react/prop-types
const ExpandedComponent = ({ data }) => (
// eslint-disable-next-line react/prop-types
<pre>{JSON.stringify(data, null, 2)}</pre>
<CippCodeBlock code={JSON.stringify(data, null, 2)} language="json" />
)

return (
Expand Down

0 comments on commit c4f220b

Please sign in to comment.