Skip to content

Commit

Permalink
Update page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
imhson authored Dec 15, 2024
1 parent 4e801e2 commit 7132bd0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pages/characters/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@ function PageContent() {
{width >= 768 ? (
<Modal open={openCharacterDetail} setOpen={setOpenCharacterDetail}>
<div className='w-screen max-w-screen-2xl relative mx-auto flex items-center gap-4'>
<div className='absolute top-0 right-5 cursor-pointer'>
<svg
xmlns='http://www.w3.org/2000/svg'
width='24'
height='24'
viewBox='0 0 24 24'
fill='none'
onClick={() => setOpenCharacterDetail(false)}>
<path d='M16 8L8 16M16 16L8 8' stroke='#fff' stroke-width='1.5' stroke-linecap='round' />
</svg>
</div>
<div className='bg-[#1C1C1C] text-white p-8 h-full w-full'>
<CharacterDetail id={selectedCharacter?.id || searchParams.get('character_id')} />
</div>
Expand Down

0 comments on commit 7132bd0

Please sign in to comment.