fix: linter

This commit is contained in:
0xSage 2024-09-18 17:46:53 +08:00
parent 062af9bcda
commit cfe657faf5
4 changed files with 9 additions and 7 deletions

View File

@ -30,8 +30,9 @@ const ModalConfirmReset = () => {
content={ content={
<div> <div>
<p className="text-[hsla(var(--text-secondary))]"> <p className="text-[hsla(var(--text-secondary))]">
Restore app to initial state, erasing all models and chat history. This Restore app to initial state, erasing all models and chat history.
action is irreversible and recommended only if the application is corrupted. This action is irreversible and recommended only if the application
is corrupted.
</p> </p>
<div className="my-4"> <div className="my-4">

View File

@ -17,8 +17,9 @@ const FactoryReset = () => {
</h6> </h6>
</div> </div>
<p className="whitespace-pre-wrap font-medium leading-relaxed text-[hsla(var(--text-secondary))]"> <p className="whitespace-pre-wrap font-medium leading-relaxed text-[hsla(var(--text-secondary))]">
Restore app to initial state, erasing all models and chat history. This Restore app to initial state, erasing all models and chat history.
action is irreversible and recommended only if the application is corrupted. This action is irreversible and recommended only if the application is
corrupted.
</p> </p>
</div> </div>
<Button <Button

View File

@ -32,8 +32,8 @@ const ExtensionItem: React.FC<Props> = ({ item }) => {
) )
const progress = isInstalling const progress = isInstalling
? (installingExtensions.find((e) => e.extensionId === item.name) ? installingExtensions.find((e) => e.extensionId === item.name)
?.percentage ?? -1) ?.percentage ?? -1
: -1 : -1
useEffect(() => { useEffect(() => {

View File

@ -178,7 +178,7 @@ const SimpleTextMessage: React.FC<ThreadMessage> = (props) => {
> >
{isUser {isUser
? props.role ? props.role
: (activeThread?.assistants[0].assistant_name ?? props.role)} : activeThread?.assistants[0].assistant_name ?? props.role}
</div> </div>
<p className="text-xs font-medium text-gray-400"> <p className="text-xs font-medium text-gray-400">
{displayDate(props.created)} {displayDate(props.created)}