Skip to content

Commit

Permalink
refactor(NumberInput): Reorder props
Browse files Browse the repository at this point in the history
Alphabetically makes them easier to read
  • Loading branch information
thyhjwb6 committed Jun 16, 2020
1 parent a79fcaa commit f0e382c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,38 @@ import { Footnote } from './Footnote'
export interface NumberInputProps {
autoFocus?: boolean
className?: string
isDisabled?: boolean
footnote?: string
id?: string
isCondensed?: boolean,
isCondensed?: boolean
isDisabled?: boolean
label?: string
max?: number
min?: number
name: string
onBlur?: (event: React.FormEvent) => void
onChange: (event: any) => void
placeholder?: string
startAdornment?: React.ReactNode | string
step?: number
value?: number
startAdornment?: React.ReactNode | string
}

export const NumberInput: React.FC<NumberInputProps> = ({
className,
isDisabled = false,
footnote,
id = uuidv4(),
isCondensed,
isDisabled = false,
label,
max,
min,
name,
onBlur,
onChange,
placeholder = '',
startAdornment,
step = 1,
value,
startAdornment,
...rest
}) => {
const { hasFocus, onInputBlur, onInputFocus } = useFocus(onBlur)
Expand Down

0 comments on commit f0e382c

Please sign in to comment.