feat: modals-gacha

This commit is contained in:
boboiazumi
2025-03-16 22:18:48 +07:00
parent 254d4fe04a
commit 41a0842026
7 changed files with 363 additions and 2 deletions
+20 -2
View File
@@ -1,11 +1,29 @@
import { Button } from '@imphnen-frontend-service/ui/atoms';
import { LandingPage } from '@imphnen-frontend-service/ui/organisms';
import { FC, ReactElement } from 'react';
import { FC, ReactElement, useState } from 'react';
import { createPortal } from 'react-dom';
import { ModalsGacha } from "@imphnen-frontend-service/ui/organisms"
export const Components: FC = (): ReactElement => {
const [showModal, setShowModal] = useState(false)
return (
<>
<LandingPage />
<div></div>
{/**Izin pake untuk debug modals gacha */}
<div>
<p>Debug : Test Modals Gacha</p>
<Button onClick={
() => setShowModal(true)
}>Tekan</Button>
</div>
{showModal && createPortal(
<ModalsGacha></ModalsGacha>,
document.body
)}
{/**Izin pake untuk debug modals gacha */}
</>
);
};