mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-06 20:51:39 +00:00
Refactor server list to object instead of array
- Improve performance due to frequency of accessing the list
This commit is contained in:
parent
3dfeed1432
commit
b2db2b27da
4 changed files with 22 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue