-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: LanguageSelectorWrapped extracted into separate component
- Loading branch information
Showing
6 changed files
with
25 additions
and
10 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.../src/components/shared/Layout/LanguageSelectorWrapped/LanguageSelectorWrapped.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.root { | ||
height: 5.28rem; | ||
} |
15 changes: 15 additions & 0 deletions
15
client/src/components/shared/Layout/LanguageSelectorWrapped/LanguageSelectorWrapped.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import cx from 'classnames'; | ||
import React, { FC } from 'react'; | ||
|
||
import LanguageSelector from 'components/shared/LanguageSelector'; | ||
|
||
import styles from './LanguageSelectorWrapped.module.scss'; | ||
import LanguageSelectorWrappedProps from './types'; | ||
|
||
const LanguageSelectorWrapped: FC<LanguageSelectorWrappedProps> = ({ className }) => ( | ||
<div className={cx(styles.root, className)}> | ||
<LanguageSelector /> | ||
</div> | ||
); | ||
|
||
export default LanguageSelectorWrapped; |
2 changes: 2 additions & 0 deletions
2
client/src/components/shared/Layout/LanguageSelectorWrapped/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// eslint-disable-next-line no-restricted-exports | ||
export { default } from './LanguageSelectorWrapped'; |
3 changes: 3 additions & 0 deletions
3
client/src/components/shared/Layout/LanguageSelectorWrapped/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default interface LanguageSelectorWrappedProps { | ||
className?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters