Change optional text props to mandatory in LedgerSignNote
This commit is contained in:
		@@ -4,11 +4,14 @@ import styled from 'styled-components';
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import { colors } from 'ts/style/colors';
 | 
					import { colors } from 'ts/style/colors';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
interface LedgerSignNoteProps {
 | 
					interface WrapperProps {
 | 
				
			||||||
    text?: string;
 | 
					 | 
				
			||||||
    isVisible: boolean;
 | 
					    isVisible: boolean;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					interface LedgerSignNoteProps extends WrapperProps {
 | 
				
			||||||
 | 
					    text: string;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const LedgerSignNote: React.StatelessComponent<LedgerSignNoteProps> = ({ text, isVisible }) => {
 | 
					export const LedgerSignNote: React.StatelessComponent<LedgerSignNoteProps> = ({ text, isVisible }) => {
 | 
				
			||||||
    return (
 | 
					    return (
 | 
				
			||||||
        <Wrapper isVisible={isVisible}>
 | 
					        <Wrapper isVisible={isVisible}>
 | 
				
			||||||
@@ -21,7 +24,7 @@ LedgerSignNote.defaultProps = {
 | 
				
			|||||||
    isVisible: false,
 | 
					    isVisible: false,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const Wrapper = styled.div<LedgerSignNoteProps>`
 | 
					const Wrapper = styled.div<WrapperProps>`
 | 
				
			||||||
    background-color: #7a7a7a;
 | 
					    background-color: #7a7a7a;
 | 
				
			||||||
    display: flex;
 | 
					    display: flex;
 | 
				
			||||||
    align-items: center;
 | 
					    align-items: center;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user