Skip to content

Commit

Permalink
fix(styles): general style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rozhkow committed Dec 5, 2023
1 parent 3f5e5a9 commit 925a2c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
10 changes: 0 additions & 10 deletions src/components/common/BaseAutoComplete/BaseAutoComplete.styles.ts

This file was deleted.

7 changes: 1 addition & 6 deletions src/components/common/BaseAutoComplete/BaseAutoComplete.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
import * as S from './BaseAutoComplete.styles';

export { AutoComplete as BaseAutoComplete } from 'antd';
export type { AutoCompleteProps as BaseAutoCompleteProps } from 'antd';

export const BaseAutoComplete : React.FC = (props) => {
return <S.AutoComplete {...props} />;
}
12 changes: 8 additions & 4 deletions src/components/common/BaseCheckbox/BaseCheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ import * as S from './BaseCheckbox.styles';

export type BaseCheckboxProps = CheckboxProps;

interface BaseCheckboxInterface extends React.FC<BaseCheckboxProps> {
const Checkbox = React.forwardRef<HTMLInputElement, BaseCheckboxProps>((props, ref) => {
return <S.Checkbox {...props} ref={ref} />;
});

type CheckboxForwardRef = typeof Checkbox;

interface BaseCheckboxInterface extends CheckboxForwardRef {
Group: typeof S.CheckboxGroup;
}

export const BaseCheckbox: BaseCheckboxInterface = (props) => {
return <S.Checkbox {...props} />;
};
export const BaseCheckbox = Checkbox as BaseCheckboxInterface;

BaseCheckbox.Group = S.CheckboxGroup;

0 comments on commit 925a2c3

Please sign in to comment.