11import * as React from "react" ;
2- import { getClassName } from "../../helpers/getClassName " ;
2+ import { IOS } from "../../lib/platform " ;
33import { classNames } from "../../lib/classNames" ;
44import { HasRef , HasRootRef } from "../../types" ;
55import { SplitColContext } from "../SplitCol/SplitCol" ;
@@ -31,7 +31,7 @@ export interface FixedLayoutState {
3131/**
3232 * @see https://vkcom.github.io/VKUI/#/FixedLayout
3333 */
34- const FixedLayout : React . FC < FixedLayoutProps > = ( {
34+ export const FixedLayout : React . FC < FixedLayoutProps > = ( {
3535 children,
3636 style,
3737 vertical,
@@ -54,12 +54,10 @@ const FixedLayout: React.FC<FixedLayoutProps> = ({
5454 { ...restProps }
5555 fixed
5656 ref = { getRootRef }
57- // eslint-disable-next-line vkui/no-object-expression-in-arguments
5857 vkuiClass = { classNames (
59- getClassName ( "FixedLayout" , platform ) ,
60- {
61- "FixedLayout--filled" : filled ,
62- } ,
58+ "FixedLayout" ,
59+ platform === IOS && "FixedLayout--ios" ,
60+ filled && "FixedLayout--filled" ,
6361 `FixedLayout--${ vertical } `
6462 ) }
6563 style = { { ...style , width } }
@@ -70,6 +68,3 @@ const FixedLayout: React.FC<FixedLayoutProps> = ({
7068 </ TooltipContainer >
7169 ) ;
7270} ;
73-
74- // eslint-disable-next-line import/no-default-export
75- export default FixedLayout ;
0 commit comments