Skip to content

Commit

Permalink
Use StyleType type instead
Browse files Browse the repository at this point in the history
  • Loading branch information
beaesguerra committed Aug 23, 2024
1 parent ed5b6db commit 88f51cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/wonder-blocks-form/src/components/text-area.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(
}
});

const getStyles = (): (CSSProperties | Falsy)[] => {
const getStyles = (): StyleType => {
// Base styles are the styles that apply regardless of light mode
const baseStyles = [
styles.textarea,
Expand Down
2 changes: 1 addition & 1 deletion packages/wonder-blocks-form/src/components/text-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class TextField extends React.Component<PropsWithForwardRef, State> {
}
};

getStyles = (): (React.CSSProperties | Falsy)[] => {
getStyles = (): StyleType => {
const {disabled, light} = this.props;
const {error} = this.state;
// Base styles are the styles that apply regardless of light mode
Expand Down

0 comments on commit 88f51cb

Please sign in to comment.