Skip to content

Commit

Permalink
show invitation url on the screen
Browse files Browse the repository at this point in the history
actionCreator is being called over and over again.
  • Loading branch information
Jsyro committed Oct 19, 2023
1 parent 838a179 commit 8f88665
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const propTypes = {
submitting: PropTypes.bool.isRequired,
partyGuid: PropTypes.string.isRequired,
partyName: PropTypes.string.isRequired,
invitation: PropTypes.any.isRequired,
invitation: PropTypes.any,
};

export class CreateInvitationForm extends Component {
Expand Down Expand Up @@ -42,7 +42,8 @@ export class CreateInvitationForm extends Component {
Copy to Clipboard
</Button>
<br />
<p></p>
<br />
<p>{this.props.invitation.invitation_url}</p>

<Popconfirm
placement="topRight"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ import CreateInvitationForm from "@/components/Forms/verifiableCredentials/Creat
const propTypes = {
closeModal: PropTypes.func.isRequired,
createVCWalletInvitation: PropTypes.func.isRequired,
invitation: PropTypes.any,
partyGuid: PropTypes.string.isRequired,
partyName: PropTypes.string.isRequired,
};

const defaultProps = {
variance: {},
invitation: {},
};

export class CreateInvitationModal extends Component {
state = { isLoaded: false, invitation: {} };
state = { isLoaded: false };

render() {
return (
Expand All @@ -28,7 +29,7 @@ export class CreateInvitationModal extends Component {
closeModal={this.props.closeModal}
partyGuid={this.props.partyGuid}
partyName={this.props.partyName}
invitation={this.state.invitation}
invitation={this.props.invitation}
/>
</div>
);
Expand Down

0 comments on commit 8f88665

Please sign in to comment.