From 16bd217d60d713fd73d26c701aec116ecd81a31e Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Wed, 24 Feb 2021 15:51:27 -0500 Subject: [PATCH] launch: update for 1.7 --- pkg/interface/src/views/apps/launch/app.js | 36 +++++++++---------- .../views/apps/launch/components/Groups.tsx | 6 ++-- .../apps/launch/components/ModalButton.tsx | 7 ++-- 3 files changed, 23 insertions(+), 26 deletions(-) diff --git a/pkg/interface/src/views/apps/launch/app.js b/pkg/interface/src/views/apps/launch/app.js index 1e0c937e1..b0e2a544a 100644 --- a/pkg/interface/src/views/apps/launch/app.js +++ b/pkg/interface/src/views/apps/launch/app.js @@ -21,7 +21,7 @@ import { Helmet } from 'react-helmet'; import useLocalState from "~/logic/state/local"; import { useWaitForProps } from '~/logic/lib/useWaitForProps'; import { useQuery } from "~/logic/lib/useQuery"; -import { +import { hasTutorialGroup, TUTORIAL_GROUP, TUTORIAL_HOST, @@ -46,17 +46,14 @@ export default function LaunchApp(props) { const hashBox = ( { writeText(props.baseHash); @@ -66,7 +63,7 @@ export default function LaunchApp(props) { }, 2000); }} > - {hashText || props.baseHash} + {hashText || props.baseHash} ); @@ -87,7 +84,7 @@ export default function LaunchApp(props) { const waiter = useWaitForProps(props); const { modal, showModal } = useModal({ - position: 'relative', + position: 'relative', maxWidth: '350px', modal: (dismiss) => { const onDismiss = (e) => { @@ -120,7 +117,7 @@ export default function LaunchApp(props) { Welcome - You have been invited to use Landscape, an interface to chat + You have been invited to use Landscape, an interface to chat and interact with communities
Would you like a tour of Landscape? @@ -183,21 +180,22 @@ export default function LaunchApp(props) { /> - - - + + + + {hashBox} diff --git a/pkg/interface/src/views/apps/launch/components/Groups.tsx b/pkg/interface/src/views/apps/launch/components/Groups.tsx index 04eac1110..f5e1d70e3 100644 --- a/pkg/interface/src/views/apps/launch/components/Groups.tsx +++ b/pkg/interface/src/views/apps/launch/components/Groups.tsx @@ -85,12 +85,12 @@ function Group(props: GroupProps) { {title} - {unreads > 0 && - ({unreads} unread{unreads !== 1 && 's'} ) - } {updates > 0 && ({updates} update{updates !== 1 && 's'} ) } + {unreads > 0 && + ({unreads}) + } diff --git a/pkg/interface/src/views/apps/launch/components/ModalButton.tsx b/pkg/interface/src/views/apps/launch/components/ModalButton.tsx index fc4ff338f..ee37a98c6 100644 --- a/pkg/interface/src/views/apps/launch/components/ModalButton.tsx +++ b/pkg/interface/src/views/apps/launch/components/ModalButton.tsx @@ -12,17 +12,16 @@ const ModalButton = (props) => {