Skip to content

Commit

Permalink
refactor: ShowDetailLayout 컴포넌트가 공연명을 받을 수 있도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Puterism committed Feb 12, 2024
1 parent 386f04b commit a8d12c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions apps/admin/src/components/ShowDetailLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ import Layout from '../Layout/index.tsx';
import Styled from './ShowDetailLayout.styles.ts';

interface ShowDetailLayoutProps {
showName: string;
children?: React.ReactNode;
}

const ShowDetailLayout = ({ children }: ShowDetailLayoutProps) => {
const ShowDetailLayout = ({ showName, children }: ShowDetailLayoutProps) => {
const { ref: topObserverRef, inView: topInView } = useInView({
threshold: 1,
});
Expand Down Expand Up @@ -68,7 +69,7 @@ const ShowDetailLayout = ({ children }: ShowDetailLayoutProps) => {
}
/>
<Styled.HeaderContent>
<Styled.ShowName size={headerInView ? 'big' : 'small'}>%공연명%</Styled.ShowName>
<Styled.ShowName size={headerInView ? 'big' : 'small'}>{showName}</Styled.ShowName>
<Styled.Tab>
<Styled.TabItem
active={matchInfoTab !== null}
Expand Down
2 changes: 1 addition & 1 deletion apps/admin/src/pages/ShowInfoPage/ShowInfoPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Styled from './ShowInfoPage.styles';

const ShowInfoPage = () => {
return (
<ShowDetailLayout>
<ShowDetailLayout showName="불다람쥐 파이어 쇼">
<Styled.ShowInfoPage>
{Array.from({ length: 100 }).map(() => (
<p>안녕</p>
Expand Down

0 comments on commit a8d12c6

Please sign in to comment.