diff --git a/pkg/interface/src/logic/lib/useDropdown.ts b/pkg/interface/src/logic/lib/useDropdown.ts index da54bd100..ee72efd37 100644 --- a/pkg/interface/src/logic/lib/useDropdown.ts +++ b/pkg/interface/src/logic/lib/useDropdown.ts @@ -13,10 +13,9 @@ export function useDropdown( setOptions(opts); if (selected) { const idx = opts.findIndex((c) => key(c) === key(selected)); - console.log(idx); if (idx < 0) { setSelected(undefined); - } + } } }, [candidates, searchPred, key, selected, setOptions, setSelected] diff --git a/pkg/interface/src/views/apps/publish/components/lib/new.tsx b/pkg/interface/src/views/apps/publish/components/lib/new.tsx index 98d78fe96..415d7d311 100644 --- a/pkg/interface/src/views/apps/publish/components/lib/new.tsx +++ b/pkg/interface/src/views/apps/publish/components/lib/new.tsx @@ -50,7 +50,7 @@ export function NewScreen(props: NewScreenProps & RouteComponentProps) { }; return ( - New Notebook + New Notebook (props: DropdownSearchProps) { ref={textarea} border={1} borderColor="washedGray" + bg="white" + color="black" borderRadius={2} onChange={onChange} value={query} diff --git a/pkg/interface/src/views/components/Group.tsx b/pkg/interface/src/views/components/Group.tsx index f7e1213d4..8bd74418c 100644 --- a/pkg/interface/src/views/components/Group.tsx +++ b/pkg/interface/src/views/components/Group.tsx @@ -13,7 +13,7 @@ import { } from '~/types/group-update'; import { Path, PatpNoSig, Patp } from '~/types/noun'; import GlobalApi from '~/logic/api/global'; -import { Menu, MenuButton, MenuList, MenuItem } from '@tlon/indigo-react'; +import { Menu, MenuButton, MenuList, MenuItem, Text } from '@tlon/indigo-react'; import InviteSearch, { Invites } from './InviteSearch'; import { Spinner } from './Spinner'; import { Rolodex } from '~/types/contact-update'; @@ -26,7 +26,7 @@ class GroupMember extends Component<{ ship: Patp; options: any[] }, {}> { return (
-
{`${cite(ship)}`}
+ {`${cite(ship)}`} {children}
{options.length > 0 && ( @@ -48,12 +48,12 @@ class Tag extends Component<{ description: string; onRemove?: () => any }, {}> { render() { const { description, onRemove } = this.props; return ( -
-
{description}
+
+ {description} {Boolean(onRemove) && ( -
+ ✗ -
+ )}
); @@ -272,7 +272,7 @@ export class GroupView extends Component< {ships.map((ship) => ( ))} - {ships.length === 0 &&
No ships are pending
} + {ships.length === 0 && No ships are pending} {props.inviteShips && this.isAdmin() && ( <>
Invite
@@ -325,9 +325,9 @@ export class GroupView extends Component< return (
-
Host
+ Host
-
{cite(resource.ship)}
+ {cite(resource.ship)}
{'invite' in group.policy && this.renderInvites(group.policy)} diff --git a/pkg/interface/src/views/components/GroupSearch.tsx b/pkg/interface/src/views/components/GroupSearch.tsx index ce0e6d05c..5315d34c2 100644 --- a/pkg/interface/src/views/components/GroupSearch.tsx +++ b/pkg/interface/src/views/components/GroupSearch.tsx @@ -25,7 +25,7 @@ const CandidateBox = styled(Box)<{ selected: boolean }>` `; const ClickableText = styled(Text)` - pointer: cursor; + cursor: pointer; `; @@ -34,6 +34,7 @@ const Candidate = ({ title, selected, onClick }) => ( onClick={onClick} selected={selected} borderColor="washedGray" + color="black" fontSize={0} p={1} width="100%" @@ -95,9 +96,9 @@ export function GroupSearch(props: InviteSearchProps) { onSelect={onSelect} onRemove={onRemove} renderChoice={({ candidate, onRemove }) => ( - + {candidate.metadata.title} - + x