interface: put dynamic title on inbox
fixes
@@ -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,6 +53,10 @@ export default function NotificationsScreen(props: any) {
render={(routeProps) => {
const { view } = routeProps.match.params;
return (
+ <>
+ <Helmet defer={false}>
+ <title>{ props.notificationsCount ? `(${String(props.notificationsCount) }) `: '' }Landscape - Notifications</title>
+ </Helmet>
<Body>
<Col overflowY="hidden" height="100%">
<Row
@@ -120,6 +125,7 @@ export default function NotificationsScreen(props: any) {
{!view && <Inbox {...props} filter={filter.groups} />}
</Col>
</Body>
+ </>
);
}}
/>
