From 14154d5eb02fa4cf244eebfbd4a731e566262030 Mon Sep 17 00:00:00 2001 From: Kacper Michalik Date: Thu, 19 Oct 2023 13:34:36 +0200 Subject: [PATCH] fix:child component and spacing --- .../ContextMenu/ContextMenu.component.tsx | 24 +++-------------- ...egisteredUsernameContextMenu.container.tsx | 27 ++++++++++++++----- 2 files changed, 23 insertions(+), 28 deletions(-) diff --git a/packages/mobile/src/components/ContextMenu/ContextMenu.component.tsx b/packages/mobile/src/components/ContextMenu/ContextMenu.component.tsx index f90abdfc10..8855d708d5 100644 --- a/packages/mobile/src/components/ContextMenu/ContextMenu.component.tsx +++ b/packages/mobile/src/components/ContextMenu/ContextMenu.component.tsx @@ -4,7 +4,6 @@ import { Typography } from '../Typography/Typography.component' import { ContextMenuItemProps, ContextMenuProps } from './ContextMenu.types' import { defaultPalette } from '../../styles/palettes/default.palette' import { appImages } from '../../assets' -import { Button } from '../Button/Button.component' export const ContextMenu: FC = ({ visible, @@ -16,8 +15,8 @@ export const ContextMenu: FC = ({ linkAction = () => { console.log('No action attached for link tap gesture.') }, - unregisteredUsername, - username, + + children, }) => { const [show, setShow] = React.useState(false) const slidingAnimation = React.useRef(new Animated.Value(0)).current @@ -163,24 +162,7 @@ export const ContextMenu: FC = ({ /> )} - - {unregisteredUsername && username && ( - - - The username{' '} - - @{username} - {' '} - has not been registered yet with the community owner, so it’s still possible for someone else to - register the same username. When the community owner is online,{' '} - - @{username} - {' '} - will be registered automatically and this alert will go away. - -