Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export interface DictionaryEnableValueForModal {
- enableValue: boolean;
- }
- export type SingleDictionaryState = Readonly<{
- currentEnableValue: DictionaryEnableValueForModal;
- }>;
- export const initialState: SingleDictionaryState = {
- currentEnableValue: {
- enableValue: true,
- },
- };
- const mapStateToProps = (state: AppState, stateProps: OwnProps): StateProps => ({
- currentDictionaryEnableValueForModal: state.singleDictionary.currentEnableValue,
- });
- export interface StateProps {
- currentDictionaryEnableValueForModal: DictionaryEnableValueForModal;
- }
- return (
- <Modal
- name={name}
- title={this.titleDisabled}
- footerButtons={buttons}
- >
- <React.Fragment>
- <div>
- State = {this.props.currentDictionaryEnableValueForModal.enableValue}
- </div>
- <div>
- {this.labelDisabled()}
- </div>
- </React.Fragment>
- </Modal>
- );
Add Comment
Please, Sign In to add comment