Make useOwnAccount return an object

This commit is contained in:
Alex Gleason
2023-06-25 12:35:09 -05:00
parent a8459ced75
commit d4eaf1e27a
53 changed files with 62 additions and 64 deletions

View File

@ -14,7 +14,7 @@ interface Props {
export default (props: Props) => {
const { onSelect } = props;
const me = useOwnAccount();
const { account: me } = useOwnAccount();
const [recentSearches, setRecentSearches] = useState<string[]>(groupSearchHistory.get(me?.id as string) || []);

View File

@ -19,7 +19,7 @@ interface Props {
export default (props: Props) => {
const { onSelect, searchValue } = props;
const me = useOwnAccount();
const { account: me } = useOwnAccount();
const debounce = useDebounce;
const debouncedValue = debounce(searchValue as string, 300);