Merge pull request #45 from public-awesome/terms-on-confirmation-modal
Add terms and conditions checkbox to collection creation confirmation modal
This commit is contained in:
commit
b77fa98856
@ -1,19 +1,45 @@
|
|||||||
|
import { useState } from 'react'
|
||||||
|
|
||||||
import { Button } from './Button'
|
import { Button } from './Button'
|
||||||
|
|
||||||
export interface ConfirmationModalProps {
|
export interface ConfirmationModalProps {
|
||||||
confirm: () => void
|
confirm: () => void
|
||||||
}
|
}
|
||||||
export const ConfirmationModal = (props: ConfirmationModalProps) => {
|
export const ConfirmationModal = (props: ConfirmationModalProps) => {
|
||||||
|
const [isChecked, setIsChecked] = useState(false)
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<input className="modal-toggle" defaultChecked id="my-modal-2" type="checkbox" />
|
<input className="modal-toggle" defaultChecked id="my-modal-2" type="checkbox" />
|
||||||
<label className="cursor-pointer modal" htmlFor="my-modal-2">
|
<label className="cursor-pointer modal" htmlFor="my-modal-2">
|
||||||
<label
|
<label
|
||||||
className="absolute top-[40%] bottom-5 left-1/3 max-w-xl max-h-40 border-2 no-scrollbar modal-box"
|
className="absolute top-[25%] bottom-5 left-1/3 max-w-[600px] max-h-[400px] border-2 no-scrollbar modal-box"
|
||||||
htmlFor="temp"
|
htmlFor="temp"
|
||||||
>
|
>
|
||||||
{/* <Alert type="warning"></Alert> */}
|
{/* <Alert type="warning"></Alert> */}
|
||||||
<div className="text-xl font-bold">
|
<div className="text-xl font-bold">
|
||||||
|
<div className="text-sm font-thin">
|
||||||
|
You represent and warrant that you have, or have obtained, all rights, licenses, consents, permissions,
|
||||||
|
power and/or authority necessary to grant the rights granted herein for any content that you create,
|
||||||
|
submit, post, promote, or display on or through the Service. You represent and warrant that such contain
|
||||||
|
material subject to copyright, trademark, publicity rights, or other intellectual property rights, unless
|
||||||
|
you have necessary permission or are otherwise legally entitled to post the material and to grant Stargaze
|
||||||
|
Parties the license described above, and that the content does not violate any laws.
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div className="flex flex-row pb-4">
|
||||||
|
<label className="flex flex-col space-y-1" htmlFor="terms">
|
||||||
|
<span className="text-sm font-light text-white">I agree with the terms above.</span>
|
||||||
|
</label>
|
||||||
|
<input
|
||||||
|
checked={isChecked}
|
||||||
|
className="p-2 mb-1 ml-2"
|
||||||
|
id="terms"
|
||||||
|
name="terms"
|
||||||
|
onClick={() => setIsChecked(!isChecked)}
|
||||||
|
type="checkbox"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
Are you sure to create a collection with the specified assets, metadata and parameters?
|
Are you sure to create a collection with the specified assets, metadata and parameters?
|
||||||
</div>
|
</div>
|
||||||
<div className="flex justify-end w-full">
|
<div className="flex justify-end w-full">
|
||||||
@ -25,9 +51,9 @@ export const ConfirmationModal = (props: ConfirmationModalProps) => {
|
|||||||
Go Back
|
Go Back
|
||||||
</label>
|
</label>
|
||||||
</Button>
|
</Button>
|
||||||
<Button className="px-0 mt-4 mb-4 max-h-12" onClick={props.confirm}>
|
<Button className="px-0 mt-4 mb-4 max-h-12" isDisabled={!isChecked} onClick={props.confirm}>
|
||||||
<label
|
<label
|
||||||
className="w-full h-full text-white bg-plumbus-light hover:bg-plumbus-light border-0 btn modal-button"
|
className="w-full h-full text-white bg-plumbus hover:bg-plumbus-light border-0 btn modal-button"
|
||||||
htmlFor="my-modal-2"
|
htmlFor="my-modal-2"
|
||||||
>
|
>
|
||||||
Confirm
|
Confirm
|
||||||
|
Loading…
Reference in New Issue
Block a user