Skip to content

Commit

Permalink
Merge pull request #74 from kalidao/update-forms
Browse files Browse the repository at this point in the history
Update forms
  • Loading branch information
gcattinp authored Oct 9, 2023
2 parents 7d8072a + 978ab7c commit 67704e7
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/minter/Confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type Message = {
}

export default function Confirm({ store, setStore, setView }: Props) {
console.log("store.juris:", store.juris);
const [checked, setChecked] = useState(false)
const [loading, setLoading] = useState(false)
const [message, setMessage] = useState<Message>({
Expand Down Expand Up @@ -223,14 +224,22 @@ export default function Confirm({ store, setStore, setView }: Props) {
{loading === false ? (
<Stack>
<Stack direction={'horizontal'} align="center" justify={'space-between'}>
<Text size="headingTwo" color="foreground">
Confirm {getName(store.juris, store.entity)} for {store.name}{' '}
</Text>
<Text size="headingTwo" color="foreground">
{"Confirm "}
{store.entity === 'UNA'
? store.entity
: store.juris === 'mi'
? 'Marshall Islands ' + store.entity
: getName(store.juris, store.entity) + " "
}
{" for " + store.name}
</Text>
<Button onClick={() => setView(1)} aria-label="Go back!" variant="transparent" shape="circle">
<IconArrowLeft />
</Button>
</Stack>
<PDFViewer src={`/legal/${store.juris + store.entity}.pdf`} />
{/* Same here, pdf wasn't loading */}
<PDFViewer src={`/legal/${store.entity === 'UNA' ? 'wyUNA' : store.juris + store.entity}.pdf`} />
<Box
display="flex"
alignItems={'center'}
Expand Down

1 comment on commit 67704e7

@vercel
Copy link

@vercel vercel bot commented on 67704e7 Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.