File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
src/features/common/components Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 192192 border-radius : .75rem ;
193193 background-size : cover ;
194194 background-position : 50% ;
195- background-image : url (" /images/en.diagram.png" );
196195 background-repeat : no-repeat ;
197196
197+ :global (html[lang= " en" ] ) & {
198+ background-image : url (" /images/en.diagram.png" );
199+ }
200+
201+ :global(html [lang = " ja" ]) & {
202+ background-image : url (" /images/ja.diagram.png" );
203+ }
204+
198205 @media #{$breakpoint-dimension-md } {
199206 border-bottom-left-radius : 12rem ;
200207 grid-column : span 6 ;
Original file line number Diff line number Diff line change 11"use client" ;
22
3- import React , { MouseEvent , useState } from "react" ;
3+ import React , { MouseEvent , useEffect , useState } from "react" ;
44import Select , {
55 SingleValue ,
66 OptionsOrGroups ,
@@ -51,6 +51,12 @@ export const FooterComponent: React.FC<FooterComponentProps> = ({
5151 const [ modalState , setModalState ] = useState < ModalStateValues > (
5252 ModalStateValues . CLOSED
5353 ) ;
54+ const [ portalTarget , setPortalTarget ] = useState < HTMLElement | null > ( null ) ;
55+
56+ useEffect ( ( ) => {
57+ setPortalTarget ( document . body ) ;
58+ } , [ ] ) ;
59+
5460 const images = getBrandDictionary ( languageCode ) ;
5561
5662 const languagePathPrefix : string =
@@ -199,7 +205,7 @@ export const FooterComponent: React.FC<FooterComponentProps> = ({
199205 GroupBase < UiLanguageModel >
200206 >
201207 }
202- menuPortalTarget = { document . body }
208+ menuPortalTarget = { portalTarget }
203209 classNamePrefix = { "language-select" }
204210 isSearchable = { false }
205211 placeholder = { currentLanguage . label }
You can’t perform that action at this time.
0 commit comments