> = ({
style,
}) => {
const {padding} = React.useContext(PageLayoutContext)
- const responsiveVariant = useResponsiveValue(variant, 'none')
return (
{
const [isDragging, setIsDragging] = React.useState(false)
const [isKeyboardDrag, setIsKeyboardDrag] = React.useState(false)
- const responsiveVariant = useResponsiveValue(variant, 'none')
const stableOnDrag = React.useRef(onDrag)
const stableOnDragEnd = React.useRef(onDragEnd)
@@ -263,8 +262,8 @@ const VerticalDivider: React.FC
{draggable ? (
@@ -356,15 +355,13 @@ const Header: FCWithSlotMarker> =
? {regular: divider, narrow: dividerWhenNarrow}
: divider
- const dividerVariant = useResponsiveValue(dividerProp, 'none')
- const isHidden = useResponsiveValue(hidden, false)
const {rowGap} = React.useContext(PageLayoutContext)
return (
>
className,
style,
}) => {
- const isHidden = useResponsiveValue(hidden, false)
const Component = as
return (
@@ -453,7 +449,7 @@ const Content: FCWithSlotMarker>
aria-labelledby={labelledBy}
style={style}
className={clsx(classes.ContentWrapper, className)}
- data-is-hidden={isHidden}
+ {...getResponsiveAttributes('is-hidden', hidden)}
>
{/* Show a horizontal divider when viewport is narrow. Otherwise, show a vertical divider. */}
{
@@ -730,7 +733,7 @@ const Pane = React.forwardRef updatePaneWidth(getDefaultPaneWidth(width))}
className={classes.PaneVerticalDivider}
@@ -799,15 +802,13 @@ const Footer: FCWithSlotMarker> =
? {regular: divider, narrow: dividerWhenNarrow}
: divider
- const dividerVariant = useResponsiveValue(dividerProp, 'none')
- const isHidden = useResponsiveValue(hidden, false)
const {rowGap} = React.useContext(PageLayoutContext)
return (