diff --git a/pkg/interface/src/logic/lib/useModal.tsx b/pkg/interface/src/logic/lib/useModal.tsx index 982ed5fbd..92a209a02 100644 --- a/pkg/interface/src/logic/lib/useModal.tsx +++ b/pkg/interface/src/logic/lib/useModal.tsx @@ -28,11 +28,11 @@ export function useModal(props: UseModalProps): UseModalResult { const dismiss = useCallback(() => { setModalShown(false); - }, [setModalShown]); + }, []); const showModal = useCallback(() => { setModalShown(true); - }, [setModalShown]); + }, []); const inner = useMemo( () => diff --git a/pkg/interface/src/logic/reducers/contact-update.ts b/pkg/interface/src/logic/reducers/contact-update.ts index 7dd519d08..44cbc6cfb 100644 --- a/pkg/interface/src/logic/reducers/contact-update.ts +++ b/pkg/interface/src/logic/reducers/contact-update.ts @@ -55,7 +55,6 @@ const edit = (json: ContactUpdate, state: S) => { data && (ship in state.contacts) ) { - console.log(data); const [field] = Object.keys(data['edit-field']); if (!field) { return; diff --git a/pkg/interface/src/views/apps/chat/ChatResource.tsx b/pkg/interface/src/views/apps/chat/ChatResource.tsx index 667cc6022..34c512f7c 100644 --- a/pkg/interface/src/views/apps/chat/ChatResource.tsx +++ b/pkg/interface/src/views/apps/chat/ChatResource.tsx @@ -36,7 +36,6 @@ export function ChatResource(props: ChatResourceProps) { const [,, owner, name] = station.split('/'); const ourContact = contacts?.[`~${window.ship}`]; - console.log(contacts); const chatInput = useRef(); diff --git a/pkg/interface/src/views/landscape/components/DeleteGroup.tsx b/pkg/interface/src/views/landscape/components/DeleteGroup.tsx index e539c7c8c..1f51f96be 100644 --- a/pkg/interface/src/views/landscape/components/DeleteGroup.tsx +++ b/pkg/interface/src/views/landscape/components/DeleteGroup.tsx @@ -38,14 +38,19 @@ export function DeleteGroup(props: { const icon = props.owner ? "X" : "SignOut"; const { modal, showModal } = useModal({ modal: - (dismiss: () => void) => ( + (dismiss: () => void) => { + const onCancel = (e) => { + e.stopPropagation(); + dismiss(); + }; + return ( - + - )}); + ); + }}); return ( {modal} diff --git a/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx b/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx index 00156f17f..fd9e4d549 100644 --- a/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx +++ b/pkg/interface/src/views/landscape/components/GroupSwitcher.tsx @@ -167,11 +167,9 @@ export function GroupSwitcher(props: { } > - { metadata && } - - {title} + { metadata && } + {title} - {(workspace.type === 'group') && ( diff --git a/pkg/interface/src/views/landscape/components/JoinGroup.tsx b/pkg/interface/src/views/landscape/components/JoinGroup.tsx index 704bf1990..0b32ebab8 100644 --- a/pkg/interface/src/views/landscape/components/JoinGroup.tsx +++ b/pkg/interface/src/views/landscape/components/JoinGroup.tsx @@ -127,14 +127,14 @@ export function JoinGroup(props: JoinGroupProps) { return ( <> - + Join a Group {_.isString(preview) ? ( - + The host appears to be offline. Join anyway? Join anyway @@ -175,7 +175,7 @@ export function JoinGroup(props: JoinGroupProps) { ) : ( - +