From 15d790fceb26dc07e80f3474dd8da3e9c2b668bd Mon Sep 17 00:00:00 2001 From: Ira Date: Tue, 29 Jun 2021 13:12:52 +0300 Subject: [PATCH 1/3] add weight to button-icon --- src/woly/atoms/button-icon/index.tsx | 117 ++++++++++++++++++++------- src/woly/atoms/button-icon/usage.mdx | 39 +++++---- 2 files changed, 109 insertions(+), 47 deletions(-) diff --git a/src/woly/atoms/button-icon/index.tsx b/src/woly/atoms/button-icon/index.tsx index 0c532aa8..226ea9ed 100644 --- a/src/woly/atoms/button-icon/index.tsx +++ b/src/woly/atoms/button-icon/index.tsx @@ -1,25 +1,25 @@ import * as React from 'react'; import styled, { StyledComponent } from 'styled-components'; import { Priority } from 'lib/types'; -import { box } from 'ui/elements'; +import { box } from 'ui/elements/box'; interface Props extends React.ButtonHTMLAttributes { className?: string; icon: React.ReactNode; onClick: React.MouseEventHandler; - outlined?: boolean; + weight?: string; } const ButtonIconBase: React.FC = ({ icon, onClick, - outlined = false, priority = 'secondary', + weight = '3', ...p }) => (