Change optional text props to mandatory in LedgerSignNote

This commit is contained in:
Jacob Evans
2019-02-19 17:34:06 -08:00
parent 8b93a2816c
commit 522736e367

View File

@@ -4,11 +4,14 @@ import styled from 'styled-components';
import { colors } from 'ts/style/colors';
interface LedgerSignNoteProps {
text?: string;
interface WrapperProps {
isVisible: boolean;
}
interface LedgerSignNoteProps extends WrapperProps {
text: string;
}
export const LedgerSignNote: React.StatelessComponent<LedgerSignNoteProps> = ({ text, isVisible }) => {
return (
<Wrapper isVisible={isVisible}>
@@ -21,7 +24,7 @@ LedgerSignNote.defaultProps = {
isVisible: false,
};
const Wrapper = styled.div<LedgerSignNoteProps>`
const Wrapper = styled.div<WrapperProps>`
background-color: #7a7a7a;
display: flex;
align-items: center;