Merge commit '3f98bee57f25a025b613d62cb75194ef0cd01d81' into glitch-soc/merge-upstream

This commit is contained in:
Claire committed 2026-06-25 20:24:56 +02:00
commit 517b50ea97
70 files changed
+651 -258

No files matched your search

@@ -328,8 +328,8 @@ export const LanguageDropdown: React.FC = () => {
const [open, setOpen] = useState(false);
const [placement, setPlacement] = useState<Placement | undefined>('bottom');
const [guess, setGuess] = useState('');
const activeElementRef = useRef<HTMLElement | null>(null);
const targetRef = useRef(null);
const activeElementRef = useRef<HTMLElement>(null);
const targetRef = useRef<HTMLButtonElement>(null);
const intl = useIntl();
@@ -421,7 +421,7 @@ export const LanguageDropdown: React.FC = () => {
offset={[5, 5]}
placement={placement}
flip
target={targetRef}
target={targetRef as React.RefObject<HTMLButtonElement>}
popperConfig={{ strategy: 'fixed', onFirstUpdate: handleOverlayEnter }}
>
{({ props, placement }) => (
@@ -70,8 +70,8 @@ const PrivacyDropdown: React.FC<PrivacyDropdownProps> = ({
disabled,
}) => {
const intl = useIntl();
const overlayTargetRef = useRef<HTMLDivElement | null>(null);
const previousFocusTargetRef = useRef<HTMLElement | null>(null);
const overlayTargetRef = useRef<HTMLDivElement>(null);
const previousFocusTargetRef = useRef<HTMLElement>(null);
const [isOpen, setIsOpen] = useState(false);
const handleClose = useCallback(() => {
@@ -171,7 +171,7 @@ const PrivacyDropdown: React.FC<PrivacyDropdownProps> = ({
offset={[5, 5]}
placement='bottom'
flip
target={overlayTargetRef}
target={overlayTargetRef as React.RefObject<HTMLDivElement>}
container={container}
popperConfig={{ strategy: 'fixed' }}
>