Skip to content

Commit

Permalink
fix: 웹뷰에서 모바일 헤더 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
alstn2468 committed Nov 6, 2024
1 parent 49bc28f commit a4e2a22
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
24 changes: 13 additions & 11 deletions apps/admin/src/pages/ShowAddCompletePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,19 @@ const ShowAddCompletePage = () => {
</Styled.CardContainer>
</Styled.ShowAddCompletePage>
<Styled.MobileShowAddCompletePage>
<Styled.MobileHeader>
<Styled.BackButton
type="button"
onClick={() => {
navigate(PATH.HOME);
}}
>
<ArrowLeftIcon />
</Styled.BackButton>
<Styled.MobileHeaderText>공연 등록</Styled.MobileHeaderText>
</Styled.MobileHeader>
{!isWebView && (
<Styled.MobileHeader>
<Styled.BackButton
type="button"
onClick={() => {
navigate(PATH.HOME);
}}
>
<ArrowLeftIcon />
</Styled.BackButton>
<Styled.MobileHeaderText>공연 등록</Styled.MobileHeaderText>
</Styled.MobileHeader>
)}
<Styled.MobileContent>
<Styled.MobileContentImage src={congratulationSvgUrl} alt="공연 등록이 완료되었습니다." />
<Styled.MobileContentTitle>공연 등록이 완료되었습니다.</Styled.MobileContentTitle>
Expand Down
24 changes: 13 additions & 11 deletions apps/admin/src/pages/ShowAddPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,19 @@ const ShowAddPage = ({ step }: ShowAddPageProps) => {
</Styled.CardContainer>
</Styled.ShowAddPage>
<Styled.MobileShowAddPage>
<Styled.MobileHeader>
<Styled.BackButton
type="button"
onClick={() => {
navigate(PATH.HOME);
}}
>
<ArrowLeftIcon />
</Styled.BackButton>
<Styled.MobileHeaderText>공연 등록</Styled.MobileHeaderText>
</Styled.MobileHeader>
{!isWebView && (
<Styled.MobileHeader>
<Styled.BackButton
type="button"
onClick={() => {
navigate(PATH.HOME);
}}
>
<ArrowLeftIcon />
</Styled.BackButton>
<Styled.MobileHeaderText>공연 등록</Styled.MobileHeaderText>
</Styled.MobileHeader>
)}
{step === 'info' && (
<Styled.MobileContent>
<Styled.ProcessIndicator>
Expand Down

0 comments on commit a4e2a22

Please sign in to comment.