Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix. product status #215

Merged
merged 14 commits into from
Dec 19, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const MarketContents = (props: MarketContentsProps) => {
<MarketMine
id={id}
brdSeq={market.data.brdSeq as unknown as string}
price={market.data.price as unknown as number}
/>
) : (
<MarketLike id={id} isLike={market.data.isLike} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ import { useQueryClient } from '@tanstack/react-query';
interface MarketMineProps {
id: string;
brdSeq: string;
price: number;
}

const MarketMine = ({ id, brdSeq }: MarketMineProps) => {
const MarketMine = ({ id, brdSeq, price }: MarketMineProps) => {
const { push } = useRouter();
const searchParams = useSearchParams();
const queryClient = useQueryClient();
Expand Down Expand Up @@ -123,9 +124,13 @@ const MarketMine = ({ id, brdSeq }: MarketMineProps) => {
<Button variant="Line" onClick={handleRemoveModal}>
<Typography color="greyScale-6">삭제</Typography>
</Button>
<Button variant="Line" onClick={handleStatusModal}>
<Typography color="greyScale-6">판매 완료</Typography>
</Button>
{price !== 1 ? (
<Button variant="Line" onClick={handleStatusModal}>
<Typography color="greyScale-6">판매 완료</Typography>
</Button>
) : (
''
)}
</Wrapper>
);
};
Expand Down
1 change: 1 addition & 0 deletions apps/web/src/styles/globalStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const GlobalStyle = createGlobalStyle`
cursor: pointer;
}


.toastui-editor-contents div {
display: flex;
flex-direction: column;
Expand Down