2021-04-15 09:34:59 -07:00
|
|
|
import React from 'react'
|
|
|
|
import Modal from './Modal'
|
|
|
|
import Button from './Button'
|
2021-04-18 06:45:11 -07:00
|
|
|
import { ElementTitle } from './styles'
|
2021-04-15 09:34:59 -07:00
|
|
|
import useLocalStorageState from '../hooks/useLocalStorageState'
|
|
|
|
|
2021-04-18 06:45:11 -07:00
|
|
|
const AlphaModal = ({
|
2021-04-15 09:34:59 -07:00
|
|
|
isOpen,
|
|
|
|
onClose,
|
|
|
|
}: {
|
|
|
|
isOpen: boolean
|
|
|
|
onClose?: (x) => void
|
|
|
|
}) => {
|
|
|
|
const [, setAlphaAccepted] = useLocalStorageState('mangoAlphaAccepted', false)
|
|
|
|
|
|
|
|
return (
|
2021-04-18 06:45:11 -07:00
|
|
|
<Modal isOpen={isOpen} onClose={onClose} hideClose>
|
2021-04-15 09:34:59 -07:00
|
|
|
<Modal.Header>
|
2021-04-18 06:45:11 -07:00
|
|
|
<div className="flex flex-col items-center">
|
|
|
|
<img
|
|
|
|
className={`h-8 w-auto mb-2`}
|
|
|
|
src="/assets/icons/logo.svg"
|
|
|
|
alt="next"
|
|
|
|
/>
|
|
|
|
<ElementTitle noMarignBottom>Mango Markets UI V2</ElementTitle>
|
2021-04-15 09:34:59 -07:00
|
|
|
</div>
|
|
|
|
</Modal.Header>
|
2021-04-18 06:45:11 -07:00
|
|
|
<div className={`pb-4 px-6 text-th-fgd-2 text-center`}>
|
|
|
|
This is an unaudited alpha release of Mango Markets. The software is
|
|
|
|
provided 'AS IS' without warranty of any kind.
|
|
|
|
<div className={`mt-4 flex justify-center`}>
|
2021-04-15 09:34:59 -07:00
|
|
|
<Button onClick={() => setAlphaAccepted(true)}>
|
|
|
|
<div className={`flex items-center`}>Accept</div>
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Modal>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2021-04-18 06:45:11 -07:00
|
|
|
export default React.memo(AlphaModal)
|