mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Fix bug and optimzed code
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import styled, { css } from 'styled-components';
|
||||
|
||||
type TButtonStyle = 'primary' | 'secondary';
|
||||
|
||||
interface IButtonStyle {
|
||||
styled?: 'primary' | 'secondary';
|
||||
styled?: TButtonStyle;
|
||||
}
|
||||
|
||||
const Button = styled.button<IButtonStyle>`
|
||||
@@ -11,7 +13,7 @@ const Button = styled.button<IButtonStyle>`
|
||||
font-weight: 600;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
|
||||
border-radius: var(--radius-md);
|
||||
|
||||
${(props) =>
|
||||
|
||||
Reference in New Issue
Block a user