fix: error and warning in mobile (#2475)
This commit is contained in:
parent
b46e1780f7
commit
ff1dc03304
|
|
@ -233,6 +233,7 @@ export const EntryList: FC<EntryListProps> = memo(
|
|||
ref={rowVirtualizer.measureElement}
|
||||
className="absolute left-0 top-0 w-full will-change-transform"
|
||||
key={virtualRow.key}
|
||||
data-index={virtualRow.index}
|
||||
style={{
|
||||
transform,
|
||||
}}
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ export const PresentSheet = forwardRef<SheetRef, PropsWithChildren<PresentSheetP
|
|||
style={{
|
||||
zIndex: contentZIndex,
|
||||
}}
|
||||
aria-describedby={undefined}
|
||||
className={cn(
|
||||
"fixed inset-x-0 bottom-0 flex max-h-[calc(100svh-3rem)] flex-col rounded-t-[10px] border-t bg-theme-modal-background-opaque pt-4",
|
||||
modalClassName,
|
||||
|
|
|
|||
|
|
@ -26,12 +26,12 @@ export function withResponsiveSyncComponent<P extends object, R = any>(
|
|||
) {
|
||||
return forwardRef<R, P>(function ResponsiveLayout(props: PropsWithoutRef<P>, ref) {
|
||||
const isMobile = useMobile()
|
||||
const componentProps = { ...props, ref } as P & RefAttributes<R>
|
||||
const componentProps = { ...props } as P & RefAttributes<R>
|
||||
|
||||
return isMobile ? (
|
||||
<MobileComponent {...componentProps} />
|
||||
) : (
|
||||
<DesktopComponent {...componentProps} />
|
||||
<DesktopComponent {...componentProps} ref={ref} />
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue