mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-23 21:53:05 +01:00
reset search on server change
This commit is contained in:
parent
538b7a45a5
commit
26ab309f10
1 changed files with 27 additions and 24 deletions
|
@ -377,6 +377,7 @@ export function PublicRooms() {
|
||||||
<PageContentCenter>
|
<PageContentCenter>
|
||||||
<Box direction="Column" gap="600">
|
<Box direction="Column" gap="600">
|
||||||
<Search
|
<Search
|
||||||
|
key={server}
|
||||||
active={isSearch}
|
active={isSearch}
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
searchInputRef={searchInputRef}
|
searchInputRef={searchInputRef}
|
||||||
|
@ -449,30 +450,32 @@ export function PublicRooms() {
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</RoomCardGrid>
|
</RoomCardGrid>
|
||||||
<span data-spacing-node />
|
|
||||||
<Box justifyContent="Center" gap="200">
|
{(data.prev_batch || data.next_batch) && (
|
||||||
<Button
|
<Box justifyContent="Center" gap="200">
|
||||||
onClick={paginateBack}
|
<Button
|
||||||
size="300"
|
onClick={paginateBack}
|
||||||
fill="Soft"
|
size="300"
|
||||||
disabled={!data.prev_batch}
|
fill="Soft"
|
||||||
>
|
disabled={!data.prev_batch}
|
||||||
<Text size="B300" truncate>
|
>
|
||||||
Previous Page
|
<Text size="B300" truncate>
|
||||||
</Text>
|
Previous Page
|
||||||
</Button>
|
</Text>
|
||||||
<Box data-spacing-node grow="Yes" />
|
</Button>
|
||||||
<Button
|
<Box data-spacing-node grow="Yes" />
|
||||||
onClick={paginateFront}
|
<Button
|
||||||
size="300"
|
onClick={paginateFront}
|
||||||
fill="Solid"
|
size="300"
|
||||||
disabled={!data.next_batch}
|
fill="Solid"
|
||||||
>
|
disabled={!data.next_batch}
|
||||||
<Text size="B300" truncate>
|
>
|
||||||
Next Page
|
<Text size="B300" truncate>
|
||||||
</Text>
|
Next Page
|
||||||
</Button>
|
</Text>
|
||||||
</Box>
|
</Button>
|
||||||
|
</Box>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Box
|
<Box
|
||||||
|
|
Loading…
Reference in a new issue