Skip to content

Commit 937f66b

Browse files
author
Ernst Kaese
committed
Update dev page alert demo to be a local storage warning
1 parent 1771aa4 commit 937f66b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pages/collection-preferences/simple.page.tsx

+9-7
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ export default function CollectionPreferencesPermutations() {
3131
visibleContentPreference={visibleContentPreference}
3232
stickyColumnsPreference={stickyColumnsPreference}
3333
customPreference={customPreference}
34+
contentBefore={
35+
<Box margin={{ bottom: 's' }}>
36+
<Alert type={'warning'} header={'Local storage not enabled'}>
37+
Go to your browser settings to enable local storage. This will persist your settings across sessions
38+
unless your local storage is cleared. If local storage is not enabled preferences are saved in session
39+
storage as a fallback.
40+
</Alert>
41+
</Box>
42+
}
3443
/>
3544
<CollectionPreferences className={`cp-2`} {...baseProperties} customPreference={customPreference} />
3645
<CollectionPreferences
@@ -44,13 +53,6 @@ export default function CollectionPreferencesPermutations() {
4453
className="cp-4"
4554
{...baseProperties}
4655
visibleContentPreference={visibleContentPreference}
47-
contentBefore={
48-
<Box margin={{ bottom: 's' }}>
49-
<Alert type={'info'} header={'Test content before'}>
50-
Some information
51-
</Alert>
52-
</Box>
53-
}
5456
/>
5557
</ScreenshotArea>
5658
</>

0 commit comments

Comments
 (0)