-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from lyytioy/next
Version 1.0.1
- Loading branch information
Showing
17 changed files
with
277 additions
and
266 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ module.exports = { | |
core: { | ||
builder: 'webpack5', | ||
}, | ||
staticDirs: ['../public'], | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,18 +1,11 @@ | ||
import { OptionsType } from './Autocomplete'; | ||
import { Globe } from '../icons'; | ||
import Select, { SelectProps } from './Select'; | ||
import Select, { SingleSelectProps } from './Select'; | ||
|
||
export type LanguageSelectProps<T = OptionsType> = Omit<SelectProps, 'adornment' | 'multiple'> & { | ||
options: T[]; | ||
helperText?: string; | ||
error?: boolean; | ||
'data-testid'?: string; | ||
}; | ||
export type LanguageSelectProps = Omit<SingleSelectProps, 'adornment' | 'multiple'>; | ||
|
||
const LanguageSelector = ({ options, ...props }: LanguageSelectProps): JSX.Element => { | ||
return ( | ||
<Select {...(props as SelectProps)} adornment={<Globe fontSize="small" />} options={options} /> | ||
); | ||
const LanguageSelector = ({ ...props }: LanguageSelectProps): JSX.Element => { | ||
return <Select multiple={false} adornment={<Globe fontSize="small" />} {...props} />; | ||
}; | ||
|
||
export default LanguageSelector; |
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
Oops, something went wrong.