File tree Expand file tree Collapse file tree
packages/features/form/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,11 +85,20 @@ export default function LocationSelect({
8585 ...props
8686} : Props < LocationOption , false , GroupOptionType > & { customClassNames ?: LocationSelectCustomClassNames } ) {
8787 const isPlatform = useIsPlatform ( ) ;
88+ const { innerClassNames : propsInnerClassNames , ...restProps } = props as typeof props & {
89+ innerClassNames ?: {
90+ option ?: string ;
91+ } ;
92+ } ;
8893 return (
8994 < Select < LocationOption >
9095 name = "location"
9196 id = "location-select"
9297 data-testid = "location-select"
98+ innerClassNames = { {
99+ ...propsInnerClassNames ,
100+ option : classNames ( "mb-1 last:mb-0" , propsInnerClassNames ?. option ) ,
101+ } }
93102 components = { {
94103 Option : ( props ) => {
95104 return (
@@ -137,7 +146,7 @@ export default function LocationSelect({
137146 { e . label }
138147 </ p >
139148 ) }
140- { ...props }
149+ { ...restProps }
141150 />
142151 ) ;
143152}
You can’t perform that action at this time.
0 commit comments