Fix receive and send
This commit is contained in:
@@ -4,15 +4,19 @@ import { colors } from '../../../theme.js';
|
||||
|
||||
interface PublishStepProps {
|
||||
invitationId: string | null;
|
||||
requirementsComplete: boolean;
|
||||
hasSignedAndBroadcasted: boolean;
|
||||
}
|
||||
|
||||
export function PublishStep({
|
||||
invitationId,
|
||||
requirementsComplete,
|
||||
hasSignedAndBroadcasted,
|
||||
}: PublishStepProps): React.ReactElement {
|
||||
return (
|
||||
<Box flexDirection='column'>
|
||||
<Text color={colors.success} bold>
|
||||
✓ Invitation Created & Published!
|
||||
✓ Invitation Ready
|
||||
</Text>
|
||||
|
||||
<Box marginTop={1} flexDirection='column'>
|
||||
@@ -30,9 +34,19 @@ export function PublishStep({
|
||||
</Box>
|
||||
|
||||
<Box marginTop={1}>
|
||||
<Text color={colors.textMuted}>
|
||||
Share this ID with the other party to complete the transaction.
|
||||
</Text>
|
||||
{hasSignedAndBroadcasted ? (
|
||||
<Text color={colors.success}>
|
||||
Transaction signed and broadcasted.
|
||||
</Text>
|
||||
) : requirementsComplete ? (
|
||||
<Text color={colors.textMuted}>
|
||||
Requirements are complete. Use the Sign & Broadcast button to finalize.
|
||||
</Text>
|
||||
) : (
|
||||
<Text color={colors.warning}>
|
||||
Requirements are incomplete. Complete missing requirements before signing.
|
||||
</Text>
|
||||
)}
|
||||
</Box>
|
||||
|
||||
<Box marginTop={1}>
|
||||
|
||||
Reference in New Issue
Block a user