Skip to content

Commit 69b9d8d

Browse files
igobrancosandroscosta
authored andcommitted
feat: use the compact version of language select
Always use the compacted version of the language selection on the header. When Richie changes the language cookie to be 'pt' the MFEs show any language on the header, so it is kind of strange. So now showing the language name on the header is better, it hides the problem and give us more space on the header, but still showning an easy way the learner to change it.
1 parent b8c28ae commit 69b9d8d

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

src/learning-header/LearningHeader.jsx

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,11 @@ const LearningHeader = ({
8181
</div>
8282
{getConfig().ENABLE_HEADER_LANG_SELECTOR && (
8383
<div className="mx-2 d-md-inline-flex">
84-
<Responsive maxWidth={1200}>
85-
<LanguageSelector
86-
options={JSON.parse(getConfig().SITE_SUPPORTED_LANGUAGES)}
87-
compact
88-
authenticatedUser={authenticatedUser}
89-
/>
90-
</Responsive>
91-
<Responsive minWidth={1200}>
92-
<LanguageSelector
93-
options={JSON.parse(getConfig().SITE_SUPPORTED_LANGUAGES)}
94-
compact={false}
95-
authenticatedUser={authenticatedUser}
96-
/>
97-
</Responsive>
84+
<LanguageSelector
85+
options={JSON.parse(getConfig().SITE_SUPPORTED_LANGUAGES)}
86+
compact
87+
authenticatedUser={authenticatedUser}
88+
/>
9889
</div>
9990
)}
10091
{showUserDropdown && authenticatedUser && (

0 commit comments

Comments
 (0)