11"use client" ;
22
33import React , { MouseEvent , useState } from "react" ;
4- import Select , { SingleValue , OptionsOrGroups , GroupBase , NonceProvider } from "react-select" ;
4+ import Select , {
5+ SingleValue ,
6+ OptionsOrGroups ,
7+ GroupBase ,
8+ NonceProvider ,
9+ } from "react-select" ;
510import { FooterIconsComponent } from "./footer-Icons.component" ;
611import { MonoFont , SecondaryFont } from "@/libs/theme/fonts" ;
712import Image from "next/image" ;
@@ -185,7 +190,12 @@ export const FooterComponent: React.FC<FooterComponentProps> = ({
185190 aria-label = { "Language picker" }
186191 className = { styles . languageSelect__container }
187192 onChange = { handleChange }
188- options = { dictionary . languagePicker . options as OptionsOrGroups < UiLanguageModel , GroupBase < UiLanguageModel > > }
193+ options = {
194+ dictionary . languagePicker . options as OptionsOrGroups <
195+ UiLanguageModel ,
196+ GroupBase < UiLanguageModel >
197+ >
198+ }
189199 menuPortalTarget = { document . body }
190200 classNamePrefix = { "language-select" }
191201 isSearchable = { false }
@@ -194,6 +204,8 @@ export const FooterComponent: React.FC<FooterComponentProps> = ({
194204 styles = { {
195205 control : ( base ) => ( {
196206 ...base ,
207+ color : "var(--color_fg_default)" ,
208+ fontSize : "0.875rem" ,
197209 background : "transparent" ,
198210 border : "none" ,
199211 borderRadius : "0px" ,
@@ -203,7 +215,6 @@ export const FooterComponent: React.FC<FooterComponentProps> = ({
203215 minHeight : "2.5rem" ,
204216 boxSizing : "border-box" ,
205217 } ) ,
206-
207218 input : ( base ) => ( {
208219 ...base ,
209220 margin : "0px" ,
@@ -217,14 +228,24 @@ export const FooterComponent: React.FC<FooterComponentProps> = ({
217228 alignSelf : "center" ,
218229 } ) ,
219230 dropdownIndicator : ( base ) => ( {
231+ ...base ,
220232 padding : "0px" ,
221233 height : "100%" ,
222234 alignSelf : "center" ,
223235 } ) ,
236+ valueContainer : ( base ) => ( {
237+ ...base ,
238+ padding : "0px"
239+ } ) ,
224240 singleValue : ( base ) => ( {
225241 ...base ,
226242 color : "unset" ,
227- } )
243+ } ) ,
244+ menu : ( base ) => ( {
245+ ...base ,
246+ top : "unset" ,
247+ bottom : "1.75rem" ,
248+ } ) ,
228249 } }
229250 > </ Select >
230251 ) }
0 commit comments