Files
landscape-template/src/Components/Modals/Login/Login_NativeWalletCard.tsx
MTG2000 43bfab177e feat: refactor project structure
Refactored the project structure so that each page has its own tree of components and a global "Components" folder for the components that is used by more than one page.
- Added an "assets" directory that exports all static images/icons/fonts/...etc
2021-12-30 15:12:40 +02:00

52 lines
1.8 KiB
TypeScript

import { motion } from 'framer-motion'
import { Direction, ModalId, replaceModal } from 'src/redux/features/modals.slice';
import { useAppDispatch } from 'src/utils/hooks';
import { ModalCard, modalCardVariants } from 'src/Components/Modals/ModalsContainer/ModalsContainer'
import { IoLockClosed, } from 'react-icons/io5'
import Button from 'src/Components/Button/Button';
export default function Login_NativeWalletCard({ onClose, direction, ...props }: ModalCard) {
const dispatch = useAppDispatch();
const handleNext = () => {
dispatch(replaceModal({
modalId: ModalId.Login_ExternalWallet,
direction: Direction.NEXT
}))
}
return (
<motion.div
custom={direction}
variants={modalCardVariants}
initial='initial'
animate="animate"
exit='exit'
className="modal-card max-w-[343px] p-24 rounded-xl relative"
>
<div className="flex justify-center">
<img
src="assets/icons/lightning-big.svg"
className='w-80 h-80'
alt="lightning" />
</div>
<p className="text-body4 text-center mt-16">
<IoLockClosed className='align-middle' /> bolt.fun/maker
</p>
<div className="mt-32 text-center">
<h3 className="text-h4 font-bold">Login to this site?</h3>
<p className='text-body4 mt-8'>By clicking login, you allow ALBY wallet to anonymously login into bolt.fun/makers</p>
</div>
<div className="grid gap-16 grid-cols-2 mt-32">
<Button onClick={onClose}>Cancel</Button>
<Button color='primary' onClick={handleNext}>Login</Button>
</div>
</motion.div>
)
}