Skip to content

Commit

Permalink
🐛 fix: Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jun 29, 2024
1 parent 8a51e0b commit 3931dc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SearchBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Tag from '@/Tag';
import { useStyles } from './style';

export interface SearchBarProps extends Omit<InputProps, 'styles' | 'classNames'> {
classNames: {
classNames?: {
input?: string;
shortKey?: string;
};
Expand All @@ -37,7 +37,7 @@ export interface SearchBarProps extends Omit<InputProps, 'styles' | 'classNames'
shortKey?: string;
spotlight?: boolean;

styles: {
styles?: {
input?: CSSProperties;
shortKey?: CSSProperties;
};
Expand All @@ -61,8 +61,8 @@ const SearchBar = memo<SearchBarProps>(
onBlur,
onPressEnter,
onFocus,
styles: { input: inputStyle, shortKey: shortKeyStyle },
classNames: { input: inputClassName, shortKey: shortKeyClassName },
styles: { input: inputStyle, shortKey: shortKeyStyle } = {},
classNames: { input: inputClassName, shortKey: shortKeyClassName } = {},
...rest
}) => {
const [inputValue, setInputValue] = useControlledState<string>(defaultValue as any, {
Expand Down

0 comments on commit 3931dc2

Please sign in to comment.