Skip to content

Commit

Permalink
feat: add another button
Browse files Browse the repository at this point in the history
  • Loading branch information
Farrell committed Jul 8, 2021
1 parent 5a736e6 commit 6d68959
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,23 @@ export const MainModal: React.FC<ModalProps> = (props) => {
</Box>
</HStack>
<Box mb={5}>
{/* <Button ml={5} mt={10} colorScheme="green" onClick={onClose}>
View in Designer
</Button> */}
{data?.templateURL && (
<Link
href={`${data?.provider}${data?.templateURL}`}
isExternal={true}
>
<Button mt={5} colorScheme="green" onClick={onClose}>
<Button mt={5} mr={3} colorScheme="green">
Launch Template
</Button>
</Link>
)}
{data?.url && (
<Link href={data?.url} isExternal={true}>
<Button mt={5} colorScheme="blue">
Open Solution
</Button>
</Link>
)}
</Box>
{data?.diagram && <Image src={data.diagram} />}
</ModalBody>
Expand Down

0 comments on commit 6d68959

Please sign in to comment.