Skip to content

Commit

Permalink
chore : 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HelloWook committed Nov 25, 2024
1 parent 66ca0cb commit d612379
Show file tree
Hide file tree
Showing 16 changed files with 1,986 additions and 3,678 deletions.
4,598 changes: 1,986 additions & 2,612 deletions .pnp.cjs

Large diffs are not rendered by default.

934 changes: 0 additions & 934 deletions .yarn/releases/yarn-4.5.1.cjs

This file was deleted.

4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@
"react-dom": "^18.3.1",
"react-icons": "^5.3.0",
"react-spring": "^9.7.4",
<<<<<<< HEAD
"react-spring-bottom-sheet": "^3.4.1",
=======
"react-spring-bottom-sheet": "3.5.0-alpha.0",
>>>>>>> main
"sharp": "^0.33.5",
"swiper": "^11.1.15",
"ts-pattern": "^5.5.0",
Expand Down
4 changes: 0 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<<<<<<< HEAD
import ToastContainer from './components/Common/ToastContainer/ToastContainer';
=======
import ToastContainer from './components/common/ToastContainer/ToastContainer';
>>>>>>> main

export const App = () => {
return (
Expand Down
6 changes: 0 additions & 6 deletions src/components/Common/BottleLetter/Bottle/Bottle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ import React from 'react';

export const Bottle = () => {
return (
<<<<<<< HEAD
<img src="/유리병_샘플.png" className="object-contain w-full h-full" />
=======
<div className="">
<img src="/유리병_샘플.png" className="h-[100px]" />
</div>
>>>>>>> main
);
};
3 changes: 0 additions & 3 deletions src/components/Common/BottleLetter/BottleLetter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ const meta: Meta<typeof BottleLetter> = {
component: BottleLetter,
title: 'BottleLetter',
tags: ['autodocs'],
<<<<<<< HEAD
decorators: [
(Story) => (
<div style={{ width: '200px', height: '200px' }}>
<Story />
</div>
)
],
=======
>>>>>>> main
argTypes: {}
};
export default meta;
Expand Down
9 changes: 0 additions & 9 deletions src/components/Common/BottleLetter/BottleLetter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,12 @@ interface BottleLetterProps {
// 유리병 관련 이벤트는 나중에 추가해야 될 것 같습니다
export const BottleLetter = ({ Letter }: BottleLetterProps) => {
return (
<<<<<<< HEAD
<div className="relative w-full h-full">
<div className="absolute top-0 left-0 w-full h-full">
<Bottle />
<div className="w-[50%] h-[50%] absolute top-[25%] left-[30%] rotate-[-30deg] ">
<Label imgSrc={Letter.label} />
</div>
=======
<div className="relative">
<div className="absolute top-0 left-0">
<Bottle />
</div>
<div className="absolute top-6 left-5 rotate-[-30deg]">
<Label imgSrc={Letter.label} />
>>>>>>> main
</div>
</div>
);
Expand Down
8 changes: 0 additions & 8 deletions src/components/Common/BottleLetter/Label/Label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,5 @@ interface LabelProps {
}

export const Label = ({ imgSrc }: LabelProps) => {
<<<<<<< HEAD
return <img src={`/${imgSrc}`} className="object-contain w-full h-full" />;
=======
return (
<div className="">
<img src={`/${imgSrc}`} className="h-[50px]" />
</div>
);
>>>>>>> main
};
14 changes: 0 additions & 14 deletions src/components/Common/ItemSlider/ItemSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,15 @@ export const ItemSlider = ({
switch (itemType) {
case 'text':
return (
<<<<<<< HEAD
<div className="flex items-center justify-center h-full p-2">
=======
<div className="p-2 h-full flex justify-center items-center">
>>>>>>> main
{item.name}
</div>
);
case 'image':
return (
<<<<<<< HEAD
<div className="flex items-center justify-center h-full">
<img
className="object-cover w-full h-full rounded"
=======
<div className="h-full flex justify-center items-center">
<img
className="w-full h-full object-cover rounded"
>>>>>>> main
src={getImagePath(item.id)}
alt={item.name}
/>
Expand All @@ -86,11 +76,7 @@ export const ItemSlider = ({
<SwiperSlide
style={slideStyle}
key={item.id}
<<<<<<< HEAD
className="flex justify-center align-middle rounded-md bg-slate-200"
=======
className="rounded-md bg-slate-200 flex justify-center align-middle"
>>>>>>> main
>
{getSliderContent(item)}
</SwiperSlide>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,11 @@ export default meta;
type Story = StoryObj<typeof NotificationBadge>;

export const notificationMin: Story = {
<<<<<<< HEAD
args: { badgeType: 'basic', count: 1 }
};

export const notificationMax: Story = {
args: { badgeType: 'basic', count: 100 }
=======
args: { badgeType: 'notification', count: 1 }
};

export const notificationMax: Story = {
args: { badgeType: 'notification', count: 100 }
>>>>>>> main
};

export const dday: Story = {
Expand Down
25 changes: 0 additions & 25 deletions src/components/Common/NotificationBadge/NotificationBadge.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
import React from 'react';

interface NotificationBadgeProps {
<<<<<<< HEAD
badgeType: 'basic' | 'dday';
=======
badgeType: 'notification' | 'dday';
>>>>>>> main
count: number;
}

export const NotificationBadge = ({
badgeType,
count
}: NotificationBadgeProps) => {
<<<<<<< HEAD
const MAX_COUNT = 99;
const BaseStyle =
'inline-flex items-center justify-center text-center align-text-middle';
Expand All @@ -26,15 +21,6 @@ export const NotificationBadge = ({
switch (badgeType) {
case 'basic':
if (count > MAX_COUNT) {
=======
const NotificationBadgeStyle =
'bg-red-600 px-2 py-1 rounded-full text-white font-semibold';

const NotificationBadgeContent = (type, count: number) => {
switch (type) {
case 'notification':
if (count > 99) {
>>>>>>> main
return (
<>
<span style={{ position: 'relative', top: '-1px' }}>
Expand Down Expand Up @@ -63,24 +49,13 @@ export const NotificationBadge = ({
</>
);
default:
<<<<<<< HEAD
return null;
=======
break;
>>>>>>> main
}
};

return (
<<<<<<< HEAD
<div className={`${BaseStyle} ${styleMap[badgeType]}`}>
{renderContent(badgeType, count)}
=======
<div
className={`${NotificationBadgeStyle} inline-flex items-center justify-center text-center align-text-middle`}
>
{NotificationBadgeContent(badgeType, count)}
>>>>>>> main
</div>
);
};
4 changes: 0 additions & 4 deletions src/components/common/Modal/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import React from 'react';
<<<<<<< HEAD

import { Overlay } from '@/components/Common/Overlay/Overlay';
=======
import { Overlay } from '@/components/common/Overlay/Overlay';
>>>>>>> main

interface ModalProps {
children: React.ReactNode;
Expand Down
4 changes: 0 additions & 4 deletions src/components/common/Overlay/Overlay.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react';

<<<<<<< HEAD
import { Overlay } from '@/components/Common/Overlay/Overlay';
=======
import { Overlay } from './Overlay';
>>>>>>> main

const meta: Meta<typeof Overlay> = {
component: Overlay,
Expand Down
4 changes: 0 additions & 4 deletions src/hooks/useModal.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import React from 'react';
<<<<<<< HEAD
import { Modal } from '@/components/Common/Modal/Modal';
=======
import { Modal } from '@/components/common/Modal/Modal';
>>>>>>> main
import { useState } from 'react';

/**
Expand Down
17 changes: 0 additions & 17 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ export default {
content: ['./src/**/*.{html,js,jsx,ts,tsx}'],
theme: {
extend: {
<<<<<<< HEAD
colors: {
primary: '#D1D5DB'
},
=======
>>>>>>> main
keyframes: {
fadeIn: {
'0%': { opacity: '0', transform: 'translateY(-20px)' },
Expand All @@ -20,20 +17,10 @@ export default {
'90%': { opacity: '1', transform: 'translateY(0)' },
'100%': { opacity: '0', transform: 'translateY(-20px)' }
}
<<<<<<< HEAD
},
animation: {
fadeIn: 'fadeIn 2s ease forwards',
'toast-slide-in': 'toast-slide-in 2s ease forwards'
=======
}
},
animation: {
fadeIn: 'fadeIn 2s ease forwards',
'toast-slide-in': 'toast-slide-in 2s ease forwards',
colors: {
primary: '#D1D5DB'
>>>>>>> main
}
}
},
Expand All @@ -44,10 +31,6 @@ export default {
'@apply bg-primary w-full rounded p-6 text-black hover:opacity-80':
''
},
<<<<<<< HEAD
=======

>>>>>>> main
'.text-btn': {
'@apply text-black hover:underline': ''
}
Expand Down
22 changes: 0 additions & 22 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8243,31 +8243,20 @@ __metadata:
languageName: node
linkType: hard

<<<<<<< HEAD
"react-spring-bottom-sheet@npm:^3.4.1":
version: 3.4.1
resolution: "react-spring-bottom-sheet@npm:3.4.1"
=======
"react-spring-bottom-sheet@npm:3.5.0-alpha.0":
version: 3.5.0-alpha.0
resolution: "react-spring-bottom-sheet@npm:3.5.0-alpha.0"
>>>>>>> main
dependencies:
"@juggle/resize-observer": "npm:^3.2.0"
"@reach/portal": "npm:^0.13.0"
"@xstate/react": "npm:^1.2.0"
body-scroll-lock: "npm:^3.1.5"
focus-trap: "npm:^6.2.2"
<<<<<<< HEAD
react-spring: "npm:^8.0.27"
=======
react-spring: "npm:^9.4.5"
>>>>>>> main
react-use-gesture: "npm:^8.0.1"
xstate: "npm:^4.15.1"
peerDependencies:
react: ^16.14.0 || 17 || 18
<<<<<<< HEAD
checksum: 10c0/bb9d70a0dd25a5fd924e359c050bf4ec5f6ee609218bcc059151651f3fd338d2183bd81df1202e2f5cf35ad1f4a84b765f72b7643d853fe68e08269fcf10d29d
languageName: node
linkType: hard
Expand All @@ -8286,13 +8275,6 @@ __metadata:
linkType: hard

"react-spring@npm:^9.7.4":
=======
checksum: 10c0/4db964125a8b27eda3ab2737eddbd199ac1309d889a3a79cf69612b1d7d94da2db360ce8f633cc33e63fff1902ed2d932a499357d9a0da0c2cc6f74b52d0a3ad
languageName: node
linkType: hard

"react-spring@npm:^9.4.5, react-spring@npm:^9.7.4":
>>>>>>> main
version: 9.7.4
resolution: "react-spring@npm:9.7.4"
dependencies:
Expand Down Expand Up @@ -10133,11 +10115,7 @@ __metadata:
react-dom: "npm:^18.3.1"
react-icons: "npm:^5.3.0"
react-spring: "npm:^9.7.4"
<<<<<<< HEAD
react-spring-bottom-sheet: "npm:^3.4.1"
=======
react-spring-bottom-sheet: "npm:3.5.0-alpha.0"
>>>>>>> main
sharp: "npm:^0.33.5"
storybook: "npm:8.4.4"
swiper: "npm:^11.1.15"
Expand Down

0 comments on commit d612379

Please sign in to comment.