set default for informational popups to be disabled

This commit is contained in:
Jennifer Player
2023-09-20 17:43:22 -04:00
parent b64ade586d
commit 21de74fac4
6 changed files with 48 additions and 45 deletions

View File

@ -32,15 +32,15 @@ function IAIInformationalPopover({
children,
placement,
}: Props): JSX.Element {
const shouldDisableInformationalPopovers = useAppSelector(
(state) => state.system.shouldDisableInformationalPopovers
const shouldEnableInformationalPopovers = useAppSelector(
(state) => state.system.shouldEnableInformationalPopovers
);
const { t } = useTranslation();
const heading = t(`popovers.${details}.heading`);
const paragraph = t(`popovers.${details}.paragraph`);
if (shouldDisableInformationalPopovers) {
if (!shouldEnableInformationalPopovers) {
return children;
} else {
return (