ui: changing kai header buttons
This commit is contained in:
parent
1976320fbe
commit
d687bb7db4
1 changed files with 3 additions and 13 deletions
|
|
@ -15,7 +15,6 @@ function ChatHeader({
|
||||||
onCreate: () => void;
|
onCreate: () => void;
|
||||||
}) {
|
}) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
//absolute top-0 left-0 right-0 z-10
|
|
||||||
return (
|
return (
|
||||||
<div className="p-4 pb-0 w-full">
|
<div className="p-4 pb-0 w-full">
|
||||||
<div
|
<div
|
||||||
|
|
@ -29,8 +28,8 @@ function ChatHeader({
|
||||||
}
|
}
|
||||||
onClick={goBack}
|
onClick={goBack}
|
||||||
>
|
>
|
||||||
<ArrowLeft size={14} />
|
<SquarePen size={14} />
|
||||||
<div>{t('Back')}</div>
|
<div>{t('New Chat')}</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
|
|
@ -46,16 +45,7 @@ function ChatHeader({
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
<div className={'flex-1 justify-end flex items-center gap-4'}>
|
<div className={'flex-1 justify-end flex items-center'}>
|
||||||
{goBack ? (
|
|
||||||
<div
|
|
||||||
onClick={() => onCreate()}
|
|
||||||
className="font-semibold w-fit cursor-pointer hover:text-main flex items-center gap-2"
|
|
||||||
>
|
|
||||||
<SquarePen size={14} />
|
|
||||||
<div>{t('New Chat')}</div>
|
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
<div
|
<div
|
||||||
className="font-semibold w-fit cursor-pointer hover:text-main flex items-center gap-2"
|
className="font-semibold w-fit cursor-pointer hover:text-main flex items-center gap-2"
|
||||||
onClick={openChats}
|
onClick={openChats}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue