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={
<div>
<p className="text-[hsla(var(--text-secondary))]">
Restore app to initial state, erasing all models and chat history. This
action is irreversible and recommended only if the application is corrupted.
Restore app to initial state, erasing all models and chat history.
This action is irreversible and recommended only if the application
is corrupted.
</p>
<div className="my-4">

View File

@ -17,8 +17,9 @@ const FactoryReset = () => {
</h6>
</div>
<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
action is irreversible and recommended only if the application is corrupted.
Restore app to initial state, erasing all models and chat history.
This action is irreversible and recommended only if the application is
corrupted.
</p>
</div>
<Button

View File

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

View File

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