Update Lucide icons imports

This commit is contained in:
n4ze3m
2024-02-25 18:55:29 +05:30
parent 43f3727369
commit 86d4d53693
11 changed files with 30 additions and 49 deletions

View File

@@ -4,8 +4,7 @@ import { useMessageOption } from "~hooks/useMessageOption"
import { PageAssitDatabase } from "~libs/db"
import { Select } from "antd"
import { SUPPORTED_LANGUAGES } from "~utils/supporetd-languages"
import { Sun } from "~icons/Sun"
import { Moon } from "~icons/Moon"
import { MoonIcon, SunIcon } from "lucide-react"
export const SettingOther = () => {
const { clearChat, speechToTextLanguage, setSpeechToTextLanguage } =
@@ -46,9 +45,9 @@ export const SettingOther = () => {
onClick={toggleDarkMode}
className={`inline-flex mt-4 items-center rounded-md border border-transparent bg-black px-2 py-2 text-sm font-medium leading-4 text-white shadow-sm dark:bg-white dark:text-gray-800 disabled:opacity-50 `}>
{mode === "dark" ? (
<Sun className="w-4 h-4 mr-2" />
<SunIcon className="w-4 h-4 mr-2" />
) : (
<Moon className="w-4 h-4 mr-2" />
<MoonIcon className="w-4 h-4 mr-2" />
)}
{mode === "dark" ? "Light" : "Dark"}
</button>