Skip to content

Commit

Permalink
add interface for button classes (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
mazmassa authored Jun 1, 2023
1 parent f47e898 commit 040d545
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export function Button(props: ButtonProps) {
...rest
} = props;

const classes: any = {
interface Classes {
[key: string]: string | object;
}

const classes: Classes = {
primary: 'default-primary',
secondary: 'default-secondary',
};
Expand Down

0 comments on commit 040d545

Please sign in to comment.