Skip to content

Commit

Permalink
fix(Select): Fixed prop typo DEV-53
Browse files Browse the repository at this point in the history
  • Loading branch information
giubatt committed May 19, 2021
1 parent 84b7c68 commit 100e13f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/components/DateSelect/DateSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface DateSelectProps {
/** Callback fired when the value is changed */
onChange?: (changes: DateValue) => void
/** Highlight the select when it's in a `filled` state */
hightlightFilled?: SelectProps["hightlightFilled"]
highlightFilled?: SelectProps["highlightFilled"]
/** Select grows to fill the width of the parent */
fullWidth?: SelectProps["fullWidth"]
children: SelectProps["children"]
Expand All @@ -68,7 +68,7 @@ const DateSelect = ({
defaultValue,
disabled = false,
onChange,
hightlightFilled = true,
highlightFilled = true,
fullWidth = false,
children,
dateFormat = "MM/dd/yyyy",
Expand Down Expand Up @@ -115,7 +115,7 @@ const DateSelect = ({
onChange={(value) => {
if (value) onChange?.((value as unknown) as DateValue)
}}
hightlightFilled={hightlightFilled}
highlightFilled={highlightFilled}
fullWidth={fullWidth}
>
{children}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface SelectProps {
/** Callback fired when the selected items change for multiple selection */
onSelectedItemsChange?: (changes: SelectedItems) => void
/** Highlight the select when it's in a `filled` state */
hightlightFilled?: boolean
highlightFilled?: boolean
/** Select grows to fill the width of the parent */
fullWidth?: boolean
children: React.ReactNode
Expand Down Expand Up @@ -73,7 +73,7 @@ const Select = ({
defaultSelectedItems,
onChange,
onSelectedItemsChange,
hightlightFilled = true,
highlightFilled = true,
fullWidth = false,
children,
renderButtonLabel,
Expand Down Expand Up @@ -132,7 +132,7 @@ const Select = ({
backgroundColor: "secondary.alpha.90",
color: "text.0",
boxShadow: "unset",
...(hightlightFilled
...(highlightFilled
? {
borderColor: "secondary.0",
fontWeight: "semibold",
Expand Down

0 comments on commit 100e13f

Please sign in to comment.