From 5f3e96566dd750f5724a522975790fe86ca8cc95 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Wed, 7 Oct 2020 10:44:44 +1000 Subject: [PATCH] Launch: cleanup design --- .../src/views/apps/launch/components/Groups.tsx | 4 +++- .../views/apps/launch/components/tiles/tile.js | 17 ++++++----------- .../components/Sidebar/SidebarInvites.tsx | 2 +- 3 files changed, 10 insertions(+), 13 deletions(-) rename pkg/interface/src/views/{ => landscape}/components/Sidebar/SidebarInvites.tsx (96%) diff --git a/pkg/interface/src/views/apps/launch/components/Groups.tsx b/pkg/interface/src/views/apps/launch/components/Groups.tsx index 545ec1bb3e..999e2a0ab0 100644 --- a/pkg/interface/src/views/apps/launch/components/Groups.tsx +++ b/pkg/interface/src/views/apps/launch/components/Groups.tsx @@ -58,7 +58,9 @@ export default function Groups(props: GroupsProps & Parameters[0]) { gridAutoRows="124px" gridTemplateColumns="repeat(auto-fit, 124px)" gridGap={3} - p={2} + px={2} + pt={2} + pb="7" > {incomingGroups.map((invite) => ( { - return `/~${e}`; -}); import { Box } from "@tlon/indigo-react"; export default class Tile extends React.Component { render() { - const { bg, to, p, ...props } = this.props; + const { to, href, p, ...props } = this.props; let childElement = ( - + {props.children} ); if (to) { - if (routeList.indexOf(to) === -1) { - childElement= ({childElement}); - } else { - childElement= ({childElement}); - } - + childElement= ({childElement}); + } else if (href) { + childElement= ({childElement}); } + return (