From a81a87085a164e4bd68a7d54061b46d77c0a3858 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Mon, 7 Feb 2022 11:43:35 +1100 Subject: [PATCH] Modal & minor fixes --- src/components/generic/Modal.tsx | 12 +++++------- .../layout/Sidebar/sections/SidebarOverlay.tsx | 4 ++-- src/components/layout/index.tsx | 2 +- src/pages/Extensions/Info.tsx | 10 +++++----- src/pages/Messages/index.tsx | 16 ++++++++-------- 5 files changed, 21 insertions(+), 23 deletions(-) diff --git a/src/components/generic/Modal.tsx b/src/components/generic/Modal.tsx index b2866387..cff34ed8 100644 --- a/src/components/generic/Modal.tsx +++ b/src/components/generic/Modal.tsx @@ -4,8 +4,6 @@ import { m } from 'framer-motion'; import { useAppSelector } from '@hooks/useAppSelector'; -// import { Backdrop } from './Backdrop'; - type DefaultDivProps = JSX.IntrinsicElements['div']; export interface ModalProps extends DefaultDivProps { @@ -22,11 +20,11 @@ export const Modal = ({ const darkMode = useAppSelector((state) => state.app.darkMode); return ( - - + + {open && ( -
+
{ close(); diff --git a/src/components/layout/index.tsx b/src/components/layout/index.tsx index 8452039c..79a6461c 100644 --- a/src/components/layout/index.tsx +++ b/src/components/layout/index.tsx @@ -23,7 +23,7 @@ export const Layout = ({ return (
-
+
{title} diff --git a/src/pages/Extensions/Info.tsx b/src/pages/Extensions/Info.tsx index 1b71b8b8..095272e1 100644 --- a/src/pages/Extensions/Info.tsx +++ b/src/pages/Extensions/Info.tsx @@ -21,21 +21,21 @@ export const Info = (): JSX.Element => { ); return ( -
+
-
+
{node?.user?.longName || 'Unknown'}
-
- +
+
); diff --git a/src/pages/Messages/index.tsx b/src/pages/Messages/index.tsx index f716c797..0fc1f196 100644 --- a/src/pages/Messages/index.tsx +++ b/src/pages/Messages/index.tsx @@ -37,7 +37,7 @@ export const Messages = (): JSX.Element => { title="Message Groups" icon={} sidebarContents={ -
+
{channels.map((channel) => ( { }} actions={} />} > -
+
{channel.channel.role === Protobuf.Channel_Role.PRIMARY ? ( @@ -64,7 +64,7 @@ export const Messages = (): JSX.Element => {
{channel.messages.length ? ( <> -
+
{[ ...new Set( channel.messages.flatMap(({ message }) => [ @@ -107,10 +107,10 @@ export const Messages = (): JSX.Element => {
} > -
-
-
- +
+
+
+ } />
{channels[channelIndex]?.channel.settings?.name.length ? channels[channelIndex]?.channel.settings?.name @@ -123,7 +123,7 @@ export const Messages = (): JSX.Element => {
{channels[channelIndex]?.messages.map((message, index) => (