Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/contexts/authContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export function AuthProvider({ children }: TAuthProviderProps): JSX.Element {
return <AuthContext.Provider value={value}>{children}</AuthContext.Provider>;
}

// eslint-disable-next-line react-refresh/only-export-components
export function useAuth(): TAuthContext {
const context = useContext(AuthContext);
if (context === undefined) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const ArtBuyerAuction = () => {
<TableCell>{`₩${auction.bid_price.toLocaleString()}`}</TableCell>
<TableCell>{getStatusText(auction.status)}</TableCell>
<TableCell>
{auction.status === 'BID' && (
{auction.status === '입찰중' && (
<AuctionButton
onClick={() => handleBtnClick(auction.auction_id)}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const Payment = () => {

const getPaymentStatus = (status: string) => {
if (status === 'COMPLETED') return '결제 완료';
if (status === 'PENDING') return '낙찰';
if (status === 'PENDING') return '결제 대기중';
return status;
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/login-redirect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const LoginRedirect = () => {
console.log('provider', provider);
// 소셜 로그인 처리
oauthLoginMutation();
}, []);
}, [code, oauthLoginMutation, provider]);

return (
<PageLayout>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/main/hooks/useCarousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const useCarousel = () => {

const imageTextSrcArray = useMemo(() => {
return [...imageTextArray, imageTextArray[0]];
}, [imageTextArray]);
}, []);

const resetIndexAndTransition = useCallback(() => {
setTimeout(() => {
Expand Down
Loading