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>
|
||||
<Box direction="Column" gap="600">
|
||||
<Search
|
||||
key={server}
|
||||
active={isSearch}
|
||||
loading={isLoading}
|
||||
searchInputRef={searchInputRef}
|
||||
|
@ -449,7 +450,8 @@ export function PublicRooms() {
|
|||
/>
|
||||
))}
|
||||
</RoomCardGrid>
|
||||
<span data-spacing-node />
|
||||
|
||||
{(data.prev_batch || data.next_batch) && (
|
||||
<Box justifyContent="Center" gap="200">
|
||||
<Button
|
||||
onClick={paginateBack}
|
||||
|
@ -473,6 +475,7 @@ export function PublicRooms() {
|
|||
</Text>
|
||||
</Button>
|
||||
</Box>
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<Box
|
||||
|
|
Loading…
Reference in a new issue