mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(frontend): persist search param translation
This commit is contained in:
parent
ad39411c84
commit
92be4a3e3b
@ -44,8 +44,9 @@ export const Translations = () => {
|
|||||||
hasCount: false,
|
hasCount: false,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
const { onSearch, searchPayload } = useSearch<ITranslation>({
|
const { ref, onSearch, searchPayload } = useSearch<ITranslation>({
|
||||||
$iLike: ["str"],
|
$iLike: ["str"],
|
||||||
|
queryParam: { key: "search", defaultValue: "" },
|
||||||
});
|
});
|
||||||
const { dataGridProps, refetch: refreshTranslations } = useFind(
|
const { dataGridProps, refetch: refreshTranslations } = useFind(
|
||||||
{ entity: EntityType.TRANSLATION },
|
{ entity: EntityType.TRANSLATION },
|
||||||
@ -152,7 +153,7 @@ export const Translations = () => {
|
|||||||
width="max-content"
|
width="max-content"
|
||||||
>
|
>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<FilterTextfield onChange={onSearch} />
|
<FilterTextfield inputRef={ref} onChange={onSearch} />
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item>
|
<Grid item>
|
||||||
<Button
|
<Button
|
||||||
|
Loading…
Reference in New Issue
Block a user