Refactor server list to object instead of array

- Improve performance due to frequency of accessing the list
This commit is contained in:
jeffvli 2023-05-09 00:39:11 -07:00
parent 3dfeed1432
commit b2db2b27da
4 changed files with 22 additions and 14 deletions

View file

@ -61,7 +61,7 @@ export const ServerListItem = ({ server }: ServerListItemProps) => {
<Divider my="sm" />
<TimeoutButton
leftIcon={<RiDeleteBin2Line />}
timeoutProps={{ callback: handleDeleteServer, duration: 1500 }}
timeoutProps={{ callback: handleDeleteServer, duration: 1000 }}
variant="subtle"
>
Remove server