-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shane Osbourne
committed
Nov 4, 2024
1 parent
8141f0a
commit e9d7b4a
Showing
12 changed files
with
69 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { h } from 'preact' | ||
|
||
export function Centered ({ children }) { | ||
return ( | ||
<div class="layout-centered"> | ||
{children} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { h } from 'preact' | ||
import { FavoritesCustomized } from '../favorites/Favorites.js' | ||
import { Centered } from '../components/Layout.js' | ||
|
||
export function factory () { | ||
return ( | ||
<FavoritesCustomized /> | ||
<Centered> | ||
<FavoritesCustomized/> | ||
</Centered> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import { h } from 'preact' | ||
import { PrivacyStatsCustomized } from '../privacy-stats/PrivacyStats.js' | ||
import { Centered } from '../components/Layout.js' | ||
|
||
export function factory () { | ||
return ( | ||
<PrivacyStatsCustomized /> | ||
<Centered> | ||
<PrivacyStatsCustomized /> | ||
</Centered> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
import { h } from 'preact' | ||
import { Centered } from '../components/Layout.js' | ||
import { RMFConsumer } from '../remote-messaging-framework/RemoteMessagingFramework.js' | ||
import { RMFProvider } from '../remote-messaging-framework/RMFProvider.js' | ||
|
||
export function factory () { | ||
return ( | ||
<RMFProvider> | ||
<RMFConsumer /> | ||
</RMFProvider> | ||
<Centered> | ||
<RMFProvider> | ||
<RMFConsumer/> | ||
</RMFProvider> | ||
</Centered> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
special-pages/pages/new-tab/app/update-notification/UpdateNotification.examples.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { h } from 'preact' | ||
import { UpdateNotification } from './UpdateNotification.js' | ||
import { noop } from '../utils.js' | ||
|
||
export const updateNotificationExamples = { | ||
empty: { | ||
factory: () => { | ||
return <UpdateNotification | ||
notes={[]} | ||
version={'1.2.3'} | ||
dismiss={noop('dismiss!')} | ||
/> | ||
} | ||
}, | ||
populated: { | ||
factory: () => { | ||
return <UpdateNotification | ||
notes={['Bug Fixed and Updates']} | ||
version={'1.2.3'} | ||
dismiss={noop('dismiss!')} | ||
/> | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters