Header kısmındaki ikonları Fc olarak değiştirdim
This commit is contained in:
parent
f17d95c1d2
commit
0bde53f1a9
6 changed files with 13 additions and 11 deletions
|
|
@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict';
|
||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "index.html",
|
"url": "index.html",
|
||||||
"revision": "0.271iot081v"
|
"revision": "0.tihrrtufp5o"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,9 @@ const HeaderActionsEnd = () => {
|
||||||
<>
|
<>
|
||||||
<Search />
|
<Search />
|
||||||
<AiAssistant />
|
<AiAssistant />
|
||||||
<LanguageSelector />
|
|
||||||
<Notification />
|
<Notification />
|
||||||
<SidePanel />
|
<SidePanel />
|
||||||
|
<LanguageSelector />
|
||||||
<UserDropdown hoverable={false} />
|
<UserDropdown hoverable={false} />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import Tooltip from '@/components/ui/Tooltip'
|
||||||
import { ROUTES_ENUM } from '@/routes/route.constant'
|
import { ROUTES_ENUM } from '@/routes/route.constant'
|
||||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||||
import { usePermission } from '@/utils/hooks/usePermission'
|
import { usePermission } from '@/utils/hooks/usePermission'
|
||||||
import { FaHeadset } from 'react-icons/fa';
|
import { FcAssistant } from 'react-icons/fc';
|
||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
|
|
||||||
const AiAssistant = () => {
|
const AiAssistant = () => {
|
||||||
|
|
@ -23,7 +23,7 @@ const AiAssistant = () => {
|
||||||
onClick={() => navigate(ROUTES_ENUM.protected.admin.ai)}
|
onClick={() => navigate(ROUTES_ENUM.protected.admin.ai)}
|
||||||
className="flex items-center justify-center w-9 h-9 m-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer transition-colors duration-200"
|
className="flex items-center justify-center w-9 h-9 m-2 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 cursor-pointer transition-colors duration-200"
|
||||||
>
|
>
|
||||||
<FaHeadset size={28} />
|
<FcAssistant size={28} />
|
||||||
</div>
|
</div>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,10 @@ import classNames from 'classnames'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import relativeTime from 'dayjs/plugin/relativeTime'
|
import relativeTime from 'dayjs/plugin/relativeTime'
|
||||||
import { useCallback, useEffect, useRef, useState } from 'react'
|
import { useCallback, useEffect, useRef, useState } from 'react'
|
||||||
import { FaBell, FaEnvelopeOpen } from 'react-icons/fa';
|
import { FaEnvelopeOpen } from 'react-icons/fa';
|
||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
import { Notification as Notify, toast } from '../ui'
|
import { Notification as Notify, toast } from '../ui'
|
||||||
|
import { FcAdvertising } from 'react-icons/fc'
|
||||||
|
|
||||||
dayjs.extend(relativeTime)
|
dayjs.extend(relativeTime)
|
||||||
|
|
||||||
|
|
@ -57,10 +58,10 @@ const NotificationToggle = ({
|
||||||
content={unreadCount}
|
content={unreadCount}
|
||||||
innerClass="py-0 px-1"
|
innerClass="py-0 px-1"
|
||||||
>
|
>
|
||||||
<FaBell />
|
<FcAdvertising />
|
||||||
</Badge>
|
</Badge>
|
||||||
) : (
|
) : (
|
||||||
<FaBell />
|
<FcAdvertising />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import { PermissionCheck } from '../shared'
|
||||||
import { Badge, Checkbox, Pagination } from '../ui'
|
import { Badge, Checkbox, Pagination } from '../ui'
|
||||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||||
import { getSearch, getSystems } from '@/services/global-search.service'
|
import { getSearch, getSystems } from '@/services/global-search.service'
|
||||||
|
import { FcSearch } from 'react-icons/fc'
|
||||||
|
|
||||||
type SearchData = {
|
type SearchData = {
|
||||||
title: string
|
title: string
|
||||||
|
|
@ -174,7 +175,7 @@ const _Search = ({ className }: { className?: string }) => {
|
||||||
return (
|
return (
|
||||||
<PermissionCheck permissions={[GLOBAL_SEARCH]}>
|
<PermissionCheck permissions={[GLOBAL_SEARCH]}>
|
||||||
<div className={classNames(className, 'text-2xl')} onClick={handleSearchOpen}>
|
<div className={classNames(className, 'text-2xl')} onClick={handleSearchOpen}>
|
||||||
<FaSearch />
|
<FcSearch />
|
||||||
</div>
|
</div>
|
||||||
<Dialog
|
<Dialog
|
||||||
contentClassName="p-0"
|
contentClassName="p-0"
|
||||||
|
|
@ -193,7 +194,7 @@ const _Search = ({ className }: { className?: string }) => {
|
||||||
onKeyDown={(e) => e.key === 'Enter' && handleSearch()}
|
onKeyDown={(e) => e.key === 'Enter' && handleSearch()}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button size="xs" onClick={handleSearch}>
|
<Button size="sm" onClick={handleSearch}>
|
||||||
<FaSearch />
|
<FaSearch />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
import classNames from 'classnames'
|
import classNames from 'classnames'
|
||||||
import Drawer from '@/components/ui/Drawer'
|
import Drawer from '@/components/ui/Drawer'
|
||||||
import { FaCog } from 'react-icons/fa';
|
|
||||||
import SidePanelContent, { SidePanelContentProps } from './SidePanelContent'
|
import SidePanelContent, { SidePanelContentProps } from './SidePanelContent'
|
||||||
import withHeaderItem from '@/utils/hoc/withHeaderItem'
|
import withHeaderItem from '@/utils/hoc/withHeaderItem'
|
||||||
import { useStoreState, useStoreActions } from '@/store'
|
import { useStoreState, useStoreActions } from '@/store'
|
||||||
import type { CommonProps } from '@/@types/common'
|
import type { CommonProps } from '@/@types/common'
|
||||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||||
|
import { FcEngineering } from 'react-icons/fc';
|
||||||
|
|
||||||
type SidePanelProps = SidePanelContentProps & CommonProps
|
type SidePanelProps = SidePanelContentProps & CommonProps
|
||||||
|
|
||||||
|
|
@ -35,7 +35,7 @@ const _SidePanel = (props: SidePanelProps) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={classNames('text-2xl', className)} onClick={openPanel} {...rest}>
|
<div className={classNames('text-2xl', className)} onClick={openPanel} {...rest}>
|
||||||
<FaCog />
|
<FcEngineering />
|
||||||
</div>
|
</div>
|
||||||
<Drawer
|
<Drawer
|
||||||
title={translate('::SidePanel.Title')}
|
title={translate('::SidePanel.Title')}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue