DeliveryIssueDialog: Add learn more button linking to support
This commit is contained in:
parent
d0bf9f929b
commit
bf7da5ca2e
23 changed files with 515 additions and 89 deletions
|
@ -70,7 +70,6 @@ export const StickerPicker = React.memo(
|
|||
}: Props,
|
||||
ref
|
||||
) => {
|
||||
const focusRef = React.useRef<HTMLButtonElement>(null);
|
||||
const tabIds = React.useMemo(
|
||||
() => ['recents', ...packs.map(({ id }) => id)],
|
||||
[packs]
|
||||
|
@ -124,7 +123,7 @@ export const StickerPicker = React.memo(
|
|||
}, [onClose]);
|
||||
|
||||
// Focus popup on after initial render, restore focus on teardown
|
||||
useRestoreFocus(focusRef);
|
||||
const [focusRef] = useRestoreFocus();
|
||||
|
||||
const isEmpty = stickers.length === 0;
|
||||
const addPackRef = isEmpty ? focusRef : undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue