From 7ce3fd49eb03bf02b3902a531d08b0e06c65cca4 Mon Sep 17 00:00:00 2001 From: Tyler Brown Cifu Shuster Date: Fri, 8 Jan 2021 10:32:20 -0800 Subject: [PATCH] interface: put dynamic title on inbox fixes https://github.com/urbit/landscape/issues/222 --- .../apps/notifications/notifications.tsx | 140 +++++++++--------- 1 file changed, 73 insertions(+), 67 deletions(-) diff --git a/pkg/interface/src/views/apps/notifications/notifications.tsx b/pkg/interface/src/views/apps/notifications/notifications.tsx index cac2ff16a..c4567cc09 100644 --- a/pkg/interface/src/views/apps/notifications/notifications.tsx +++ b/pkg/interface/src/views/apps/notifications/notifications.tsx @@ -2,6 +2,7 @@ import React, { useCallback, useState } from "react"; import _ from 'lodash'; import { Box, Col, Text, Row } from "@tlon/indigo-react"; import { Link, Switch, Route } from "react-router-dom"; +import Helmet from "react-helmet"; import { Body } from "~/views/components/Body"; import { PropFunc } from "~/types/util"; @@ -52,74 +53,79 @@ export default function NotificationsScreen(props: any) { render={(routeProps) => { const { view } = routeProps.match.params; return ( - - - - Updates - - - - Inbox - - - - - Preferences - - - - - - - - - } + <> + + { props.notificationsCount ? `(${String(props.notificationsCount) }) `: '' }Landscape - Notifications + + + + - - - Filter: - - {groupFilterDesc} - - - - {view === "preferences" && ( - - )} - {!view && } - - + Updates + + + + Inbox + + + + + Preferences + + + + + + + + + } + > + + + Filter: + + {groupFilterDesc} + + + + {view === "preferences" && ( + + )} + {!view && } + + + ); }} />