Merge branch 'styled-components-refactor' of https://github.com/satoshilabs/trezor-wallet into styled-components-refactor

pull/8/head
Vasek Mlejnsky 6 years ago
commit 81ccc8e347

@ -145,7 +145,8 @@ export const Notification = (props: NProps): React$Element<string> => {
type={props.className}
text={action.label}
onClick={() => { close(); action.callback(); }}
/>
>{action.label}
</NotificationButton>
))}
</ActionContent>
)}

@ -62,7 +62,7 @@ const IconWrapper = styled.span`
`;
const NotificationButton = ({
className, text, icon, onClick = () => { }, type = null,
children, className, icon, onClick = () => { }, type = null,
}) => (
<Wrapper
className={className}
@ -79,11 +79,12 @@ const NotificationButton = ({
/>
</IconWrapper>
)}
{text}
{children}
</Wrapper>
);
NotificationButton.propTypes = {
children: PropTypes.element.isRequired,
type: PropTypes.string.isRequired,
className: PropTypes.string,
onClick: PropTypes.func,
@ -92,7 +93,6 @@ NotificationButton.propTypes = {
color: PropTypes.string,
size: PropTypes.number,
}),
text: PropTypes.string.isRequired,
};
export default NotificationButton;
Loading…
Cancel
Save