Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "wordpress-plugins/real-cookie-banner/src/public/ts/components/config/settings/formFooter"

Index

Variables

Variables

Const SettingsFormFooter

SettingsFormFooter: FC = observer(() => {const { params } = useRouteMatch<{ tab: string }>();const tab = params.tab || "";const history = useHistory();const {optionStore: {tcf,others: { resetUrl }}} = useStores();const { link: tcfLink } = useRouteTcfVendorConfiguration();const handleResetUrlClick: HTMLAttributes<HTMLAnchorElement>["onClick"] = useCallback((e) => {e.preventDefault();if (window.confirm(__("Are you sure? All your data will be reset to default. This also includes defined services and content blockers, and collected consents.")) &&window.confirm(__("Are you really sure? This action cannot be undone."))) {window.location.href = resetUrl;}},[resetUrl]);return (<Form.Item className="rcb-form-sticky-submit"><span><a href="#" onClick={handleResetUrlClick}>{__("Reset all")}</a><input type="submit" className="button button-primary right" value={__("Save settings")} />{tcf && tab === "tcf" && (<buttonclassName="button right"onClick={() => history.push(tcfLink.slice(1))}style={{ marginRight: 10 }}>{__("Start vendor configuration")}</button>)}</span></Form.Item>);})

Generated using TypeDoc