Skip to content

Commit c7b7ef6

Browse files
authored
Merge pull request #22 from Nexters/fix/receive-card-gradient
fix: 상세 모달 header 컬러 수정
2 parents deb9df0 + f11127d commit c7b7ef6

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

apps/tuk-web/src/app/invite-list/src/components/ReceiveDetailModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const InviteDetailModal = ({ onClose }: InviteDetailModalProps) => {
2323

2424
return (
2525
<div className="fixed inset-0 z-50 bg-gradient-to-b from-white-default to-[#DCC8F8]">
26-
<Header>
26+
<Header className="bg-transparent">
2727
<Header.Left />
2828
<Header.Right>
2929
<Header.Button onClick={onClose}>

apps/tuk-web/src/shared/components/Header.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
import { ButtonHTMLAttributes, HTMLAttributes, PropsWithChildren } from 'react';
1+
import { ButtonHTMLAttributes, HTMLAttributes } from 'react';
22

33
import { cn } from '@/shared/lib';
44

5-
export const Header = ({ children }: PropsWithChildren) => {
5+
export const Header = ({ children, className }: HTMLAttributes<HTMLHeadElement>) => {
66
return (
7-
<header className="sticky top-0 z-20 flex h-16 items-center justify-between bg-white-default px-5 py-4">
7+
<header
8+
className={cn(
9+
'sticky top-0 z-20 flex h-16 items-center justify-between bg-white-default px-5 py-4',
10+
className
11+
)}
12+
>
813
{children}
914
</header>
1015
);

0 commit comments

Comments
 (0)