Files
bsky-social-app/modules/bottom-sheet/src/BottomSheetPortal.js
T
Claude 2b2973a19e Fix double border on custom feed posts (web)
Add missing visibility check for ageAssuranceBanner on non-discover
feeds. The banner was being added to the feedItems array without
checking ageAssuranceBannerState.visible, causing the first post's
rowIndex to be 1 instead of 0, which prevented hideTopBorder from
being set correctly. This was particularly visible on web when
directly navigating to a custom feed URL.
2026-01-25 15:11:24 +00:00

20 lines
985 B
JavaScript

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from 'react';
import { createPortalGroup_INTERNAL } from './lib/Portal';
export var Context = React.createContext({});
Context.displayName = 'BottomSheetPortalContext';
export var useBottomSheetPortal_INTERNAL = function () { return React.useContext(Context); };
export function BottomSheetPortalProvider(_a) {
var children = _a.children;
var portal = React.useMemo(function () {
return createPortalGroup_INTERNAL();
}, []);
return (_jsx(Context.Provider, { value: portal.Portal, children: _jsxs(portal.Provider, { children: [children, _jsx(portal.Outlet, {})] }) }));
}
var defaultPortal = createPortalGroup_INTERNAL();
export var BottomSheetOutlet = defaultPortal.Outlet;
export function BottomSheetProvider(_a) {
var children = _a.children;
return (_jsx(Context.Provider, { value: defaultPortal.Portal, children: _jsx(defaultPortal.Provider, { children: children }) }));
}