Remove io5 references
This commit is contained in:
parent
79088eabb8
commit
e21c9873f8
@ -9,12 +9,10 @@ import Spinner from './Spinner';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { useTheme } from 'next-themes';
|
||||
import { BiDesktop, BiMoon, BiSun } from 'react-icons/bi';
|
||||
import { IoInvertModeSharp } from 'react-icons/io5';
|
||||
// import { IoInvertModeSharp } from 'react-icons/io5';
|
||||
|
||||
const LISTENER_KEYDOWN = 'keydown';
|
||||
|
||||
const MINIMUM_QUERY_LENGTH = 2;
|
||||
|
||||
export type CommandKSection = {
|
||||
heading: string
|
||||
accessory?: ReactNode
|
||||
@ -35,6 +33,8 @@ export default function CommandKClient({
|
||||
onQueryChange?: (query: string) => Promise<CommandKSection[]>
|
||||
sections?: CommandKSection[]
|
||||
}) {
|
||||
const MINIMUM_QUERY_LENGTH = 2;
|
||||
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
const [queryRaw, setQueryRaw] = useState('');
|
||||
const [queryDebounced] = useDebounce(queryRaw, 500, { trailing: true });
|
||||
@ -85,10 +85,10 @@ export default function CommandKClient({
|
||||
|
||||
const sectionTheme: CommandKSection = {
|
||||
heading: 'Theme',
|
||||
accessory: <IoInvertModeSharp
|
||||
size={14}
|
||||
className="translate-y-[0.5px] translate-x-[-1px]"
|
||||
/>,
|
||||
// accessory: <IoInvertModeSharp
|
||||
// size={14}
|
||||
// className="translate-y-[0.5px] translate-x-[-1px]"
|
||||
// />,
|
||||
items: [{
|
||||
label: 'Use System',
|
||||
annotation: <BiDesktop />,
|
||||
|
||||
@ -24,7 +24,7 @@ import { formatCount, formatCountDescriptive } from '@/utility/string';
|
||||
import { BiLockAlt } from 'react-icons/bi';
|
||||
import { sortTagsObject } from '@/tag';
|
||||
import PhotoFilmSimulationIcon from '@/simulation/PhotoFilmSimulationIcon';
|
||||
import { IoDocumentText } from 'react-icons/io5';
|
||||
// import { IoDocumentText } from 'react-icons/io5';
|
||||
import { FaTag } from 'react-icons/fa';
|
||||
import { TbPhoto } from 'react-icons/tb';
|
||||
import { IoMdCamera } from 'react-icons/io';
|
||||
@ -84,7 +84,7 @@ export default async function CommandK() {
|
||||
|
||||
const SECTION_PAGES: CommandKSection = {
|
||||
heading: 'Pages',
|
||||
accessory: <IoDocumentText size={14} className="translate-x-[-1px]" />,
|
||||
// accessory: <IoDocumentText size={14} className="translate-x-[-1px]" />,
|
||||
items: ([{
|
||||
label: 'Home',
|
||||
path: '/',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user