2
0

feat(settings): ️ Can disable query params auto hide

This commit is contained in:
Baptiste Arnaud
2022-05-14 11:53:59 -07:00
parent 731e646377
commit 42721865c5
5 changed files with 66 additions and 2 deletions

View File

@ -47,6 +47,12 @@ export const GeneralSettingsForm = ({
isInputPrefillEnabled,
})
const handleHideQueryParamsChange = (isHideQueryParamsEnabled: boolean) =>
onGeneralSettingsChange({
...generalSettings,
isHideQueryParamsEnabled,
})
return (
<Stack spacing={6}>
<UpgradeModal isOpen={isOpen} onClose={onClose} />
@ -78,6 +84,13 @@ export const GeneralSettingsForm = ({
initialValue={generalSettings.isNewResultOnRefreshEnabled ?? false}
onCheckChange={handleNewResultOnRefreshChange}
/>
<SwitchWithLabel
id="query-params"
label="Hide query params on bot start"
initialValue={generalSettings.isHideQueryParamsEnabled ?? true}
onCheckChange={handleHideQueryParamsChange}
moreInfoContent="If your URL contains query params, they will be automatically hidden when the bot starts."
/>
</Stack>
)
}