Skip to content

Commit

Permalink
📝 corrections UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben committed Oct 30, 2023
1 parent ceeb043 commit ee4c232
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
"confirmDeleteDispenser": "Are you sure you want to delete your POAP Kiosk?\n\nThis cannot be undone, but you can always create a new POAP Kiosk following the same simple steps you used to make this one.",
"succesDeleteDispenser": "Deletion success!\n\nYour POAP Kiosk has been deleted.",
"deletionCancelled": "Deletion cancelled, your event still exists.",
"errorDeleteDispenser": "Error Deleting POAP Kiosk: {{ message }}",
"errorDeleteDispenser": "Error Deleting POAP Kiosk: {{ message }}.",
"amountScannedMessage": "Your POAP Kiosk QR was scanned {{ scans }} times and {{ claimed }} out of {{ codes }} POAPs were claimed.",
"editActions": {
"editHeading": "Admin actions",
Expand All @@ -256,7 +256,7 @@
"confirmRecalculate": "During the recalculation process, your POAP Kiosk will be unstable and might not work as expected.\n\nAre you sure you want to recalculate?",
"recalculationCancelled": "Recalculation was cancelled, nothing changed",
"recalculationSuccess": "Recalculation succeeded, your POAP Kiosk should be working as expected again.",
"recalculating": "Recalculating the amount of codes available for this Kiosk",
"recalculating": "Recalculating the amount of codes available for this Kiosk.",
"hero": {
"subheading": {
"reviewed": "⚠️ Your event is being reviewed",
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/MethodCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const MethodCard = ( { event, eventLink, adminLink, onDelete, onRecalcula
return <MethodContainer>
<MethodLabel>
<IconContainer>
<PoapIcon size={ isMobile ? '16px' : '20' } icon='QRCodeIcon' color='var(--warning-500)' />
<PoapIcon size={ isMobile ? '16' : '20' } icon='QRCodeIcon' color='var(--warning-500)' />
</IconContainer>
</MethodLabel>
<MethodContent>
Expand Down
4 changes: 2 additions & 2 deletions src/components/molecules/ModalSide.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ export const StyledModal = styled( ReactModal )`
align-items: center;
justify-content: flex-end;
overflow: scroll;
/* padding: var(--spacing-3); */
`

const Modal = styled( Section )`
padding: 2rem 1rem;
padding: 5rem 2rem 1rem 2rem;
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
max-width: 450px;
background: white;
box-shadow: 0px 0 5px 2px rgba( 0, 0, 0, .1);
border-left: 1px solid var(--primary-700);
`

export default ( { children, open = true, showClose = false, setIsOpen, ...props } ) => {
Expand Down
5 changes: 2 additions & 3 deletions src/components/pages/EventAdmin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const ModalButtonContainer = styled.div`
flex-direction: row;
justify-content: center;
gap: 1rem;
margin-top: 1rem;
`

// ///////////////////////////////
Expand Down Expand Up @@ -249,7 +248,7 @@ export default function EventAdmin( ) {
<Text>Are you sure you want to refresh the mint link counter? Your POAP Kiosk will be unstable and might not work as expected.</Text>
</ModalContainer>

<Divider plain style={ { color: 'var(--primary-200)', margin: 'auto 0 1rem 0' } } />
<Divider plain style={ { margin: 'auto 0 1rem 0', borderTop: '1px solid var(--primary-200)' } } />

<ModalButtonContainer>
<Button variation='white' onClick={ handleCloseModalRecalculate }>Cancel</Button>
Expand All @@ -267,7 +266,7 @@ export default function EventAdmin( ) {
<Text>Are you sure you want to delete this kiosk? You can create a new kiosk for this POAP after deletion. </Text>
</ModalContainer>

<Divider plain style={ { color: 'var(--primary-200)', margin: 'auto 0 1rem 0' } } />
<Divider plain style={ { margin: 'auto 0 .5rem 0', borderTop: '1px solid var(--primary-200)' } } />

<ModalButtonContainer>
<Button variation='white' onClick={ handleCloseModalDestroy }>Cancel</Button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/MintPOAP.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function MintPOAP() {

// Validate address based on address or email
if( !address_to_mint_to?.match( eth_address_or_ens_regex ) && !address_to_mint_to?.match( valid_email_regex ) ) {
throw new Error( 'Please input a valid Ethereum address/ENS or email address' )
throw new Error( 'Please input a valid Ethereum address/ENS or email address.' )
}

const { data: { error } } = await mint_code_to_address( { claim_code, address_to_mint_to, challenge_code } )
Expand Down

0 comments on commit ee4c232

Please sign in to comment.