Blueprints: More specific storage name

This makes the name for the Blueprints! feature alert more specific in the localStorage.
This commit is contained in:
regexowl 2024-03-18 16:17:47 +01:00 committed by Lucas Garfield
parent ea7f7168ab
commit bc8258146a

View file

@ -4,13 +4,16 @@ import { Alert, AlertActionCloseButton, Text } from '@patternfly/react-core';
export const NewAlert = () => {
const isAlertDismissed = window.localStorage.getItem(
'imageBuilder.alertDismissed'
'imageBuilder.newFeatureBlueprintsAlertDismissed'
);
const [displayAlert, setDisplayAlert] = useState(!isAlertDismissed);
const dismissAlert = () => {
setDisplayAlert(false);
window.localStorage.setItem('imageBuilder.alertDismissed', 'true');
window.localStorage.setItem(
'imageBuilder.newFeatureBlueprintsAlertDismissed',
'true'
);
};
if (displayAlert) {