Merge branch 'main' into feat/jwt-auth

This commit is contained in:
Siddhant Rai
2025-03-18 18:26:29 +05:30
committed by GitHub
61 changed files with 1721 additions and 1075 deletions

View File

@@ -84,9 +84,11 @@ export default function General() {
changeLanguage(selectedLanguage?.value);
}, [selectedLanguage, changeLanguage]);
return (
<div className="mt-12">
<div className="mb-5">
<label className="block mb-2 font-bold text-jet dark:text-bright-gray">
<div className="mt-12 flex flex-col gap-4">
{' '}
<div className="flex flex-col gap-4">
{' '}
<label className="font-medium text-base text-jet dark:text-bright-gray">
{t('settings.general.selectTheme')}
</label>
<Dropdown
@@ -103,8 +105,8 @@ export default function General() {
border="border"
/>
</div>
<div className="mb-5">
<label className="block mb-2 font-bold text-jet dark:text-bright-gray">
<div className="flex flex-col gap-4">
<label className="font-medium text-base text-jet dark:text-bright-gray">
{t('settings.general.selectLanguage')}
</label>
<Dropdown
@@ -121,8 +123,8 @@ export default function General() {
border="border"
/>
</div>
<div className="mb-5">
<label className="block font-bold text-jet dark:text-bright-gray">
<div className="flex flex-col gap-4">
<label className="font-medium text-base text-jet dark:text-bright-gray">
{t('settings.general.chunks')}
</label>
<Dropdown
@@ -134,8 +136,8 @@ export default function General() {
border="border"
/>
</div>
<div className="mb-5">
<label className="mb-2 block font-bold text-jet dark:text-bright-gray">
<div className="flex flex-col gap-4">
<label className="font-medium text-base text-jet dark:text-bright-gray">
{t('settings.general.convHistory')}
</label>
<Dropdown
@@ -159,7 +161,7 @@ export default function General() {
border="border"
/>
</div>
<div className="mb-5">
<div className="flex flex-col gap-4">
<Prompts
prompts={prompts}
selectedPrompt={selectedPrompt}
@@ -169,12 +171,11 @@ export default function General() {
setPrompts={setPrompts}
/>
</div>
<div className="w-56">
<label className="block font-bold text-jet dark:text-bright-gray">
{t('settings.general.deleteAllLabel')}
</label>
<hr className="border-t w-[calc(min(665px,100%))] my-4 border-silver dark:border-silver/40" />
<div className="flex flex-col gap-2">
<button
className="mt-2 flex w-full cursor-pointer items-center justify-between rounded-3xl border border-solid border-red-700 px-5 py-3 text-red-700 transition-colors hover:bg-red-700 hover:text-white dark:border-red-600 dark:text-red-600 dark:hover:bg-red-600 dark:hover:text-white"
title={t('settings.general.deleteAllLabel')}
className="flex font-medium text-sm w-fit cursor-pointer items-center justify-between rounded-3xl border border-solid border-rosso-corsa bg-transparent px-5 py-3 text-rosso-corsa transition-colors hover:bg-rosso-corsa hover:text-white hover:font-bold tracking-[0.015em] hover:tracking-normal"
onClick={() => dispatch(setModalStateDeleteConv('ACTIVE'))}
>
{t('settings.general.deleteAllBtn')}