-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCT-2193 Implement language selector: app #561
base: master
Are you sure you want to change the base?
Conversation
&.variant-- { | ||
&overselect, &underselect { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
underselect
to remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see the reason. Why?
const LanguageSelector = (): ReactElement => { | ||
const { t, i18n } = useTranslation('translation'); | ||
|
||
const languageOptions = getLanguageOptions(t); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think getLanguageOptions
as an additional layer is unnecessary here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
<div className={styles.newsletterAndLanguageSelector}> | ||
<div className={styles.newsletterWrapper}> | ||
<div ref={newsletterRef} className={styles.newsletter} /> | ||
<div className={styles.newsletterText}>{t('newsletterText')}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplication of newsletterText
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -22,9 +23,15 @@ import { octantSemiTransparent } from 'svg/logo'; | |||
import styles from './LayoutFooter.module.scss'; | |||
import LayoutFooterProps from './types'; | |||
|
|||
const LanguageSelectorWrapped = (): ReactElement => ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest one component per file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Description
Definition of Done
(1) Developer(s) in coordination with QA decide whether it's required. For small tickets introducing small changes QA assistance is most probably not required.
(2) Octant Areas & Test Cases.