Skip to content

Commit

Permalink
fix frontend formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
esxr committed Apr 26, 2024
1 parent 01e10e5 commit 7c096d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 8 additions & 9 deletions frontend/src/components/ConfigList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ function ConfigItem(props: {
);
}


export function ConfigList(props: {
configs: ConfigListProps["configs"];
currentConfig: Config | null;
Expand All @@ -93,10 +92,10 @@ export function ConfigList(props: {
deleteConfig={props.deleteConfig}
/>
)) ?? (
<li className="leading-6 p-2 animate-pulse font-black text-gray-400 text-lg">
...
</li>
)}
<li className="leading-6 p-2 animate-pulse font-black text-gray-400 text-lg">
...
</li>
)}
</ul>

<div className="text-xs font-semibold leading-6 text-gray-400 mt-4">
Expand All @@ -114,10 +113,10 @@ export function ConfigList(props: {
deleteConfig={props.deleteConfig}
/>
)) ?? (
<li className="leading-6 p-2 animate-pulse font-black text-gray-400 text-lg">
...
</li>
)}
<li className="leading-6 p-2 animate-pulse font-black text-gray-400 text-lg">
...
</li>
)}
</ul>
</>
);
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/hooks/useConfigList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ export function useConfigList(): ConfigListProps {
await fetch(`/assistants/${assistantId}`, {
method: "DELETE",
});
setConfigs(configs?.filter(config => config.assistant_id !== assistantId));
setConfigs(
configs?.filter((config) => config.assistant_id !== assistantId),
);
},
[configs],
);
Expand Down

0 comments on commit 7c096d6

Please sign in to comment.