Skip to content

Commit

Permalink
Merge pull request #144 from indexnetwork/dev
Browse files Browse the repository at this point in the history
iterate
  • Loading branch information
serefyarar authored Sep 8, 2024
2 parents ba4fec8 + 912c3dd commit f46f9bb
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web-app/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name":"Index Network",
"short_name":"Index",
"start_url":"/notifications",
"start_url":"/",
"display":"standalone",
"background_color":"black",
"theme_color":"black",
1 change: 1 addition & 0 deletions web-app/src/app/notifications/page.tsx
Original file line number Diff line number Diff line change
@@ -81,6 +81,7 @@ const Notifications: NextPage = () => {
return (
<div>
<h1>Web Push Notifications</h1>
<a href="/">Home</a>
{isSubscribed ? (
<button onClick={handleUnsubscribe}>Bildirimleri Kapat</button>
) : (
18 changes: 18 additions & 0 deletions web-app/src/components/layout/site/AppHeader/index.tsx
Original file line number Diff line number Diff line change
@@ -170,6 +170,24 @@ const AppHeader = () => {
</Text>
</div>
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => {
router.push("/notifications");
}}
>
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "start",
}}
>
<IconHistory width={16} height="100%" />
<Text className="ml-3" element="span" size="md">
Notifications
</Text>
</div>
</DropdownMenuItem>
<DropdownMenuItem divider />
<DropdownMenuItem onClick={handleDisconnect}>
<div

0 comments on commit f46f9bb

Please sign in to comment.