mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +03:00
interface: put dynamic title on inbox
fixes https://github.com/urbit/landscape/issues/222
This commit is contained in:
parent
71f16fc32b
commit
7ce3fd49eb
@ -2,6 +2,7 @@ import React, { useCallback, useState } from "react";
|
|||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import { Box, Col, Text, Row } from "@tlon/indigo-react";
|
import { Box, Col, Text, Row } from "@tlon/indigo-react";
|
||||||
import { Link, Switch, Route } from "react-router-dom";
|
import { Link, Switch, Route } from "react-router-dom";
|
||||||
|
import Helmet from "react-helmet";
|
||||||
|
|
||||||
import { Body } from "~/views/components/Body";
|
import { Body } from "~/views/components/Body";
|
||||||
import { PropFunc } from "~/types/util";
|
import { PropFunc } from "~/types/util";
|
||||||
@ -52,6 +53,10 @@ export default function NotificationsScreen(props: any) {
|
|||||||
render={(routeProps) => {
|
render={(routeProps) => {
|
||||||
const { view } = routeProps.match.params;
|
const { view } = routeProps.match.params;
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Helmet defer={false}>
|
||||||
|
<title>{ props.notificationsCount ? `(${String(props.notificationsCount) }) `: '' }Landscape - Notifications</title>
|
||||||
|
</Helmet>
|
||||||
<Body>
|
<Body>
|
||||||
<Col overflowY="hidden" height="100%">
|
<Col overflowY="hidden" height="100%">
|
||||||
<Row
|
<Row
|
||||||
@ -120,6 +125,7 @@ export default function NotificationsScreen(props: any) {
|
|||||||
{!view && <Inbox {...props} filter={filter.groups} />}
|
{!view && <Inbox {...props} filter={filter.groups} />}
|
||||||
</Col>
|
</Col>
|
||||||
</Body>
|
</Body>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user