Skip to content

Commit

Permalink
fix: 콘솔 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
a-honey committed Feb 22, 2024
1 parent 7a4f77e commit 0f62678
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/molecules/Counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Counter: React.FC<CountState> = ({
<button className="w-[30px] text-center" onClick={handleDecreaseCount}>
-
</button>
<input className="w-[30px] text-center" value={currentCount} />
<input className="w-[30px] text-center" defaultValue={currentCount} />
<button className="w-[30px] text-center" onClick={handleIncreaseCount}>
+
</button>
Expand Down
1 change: 0 additions & 1 deletion src/pages/fridge/add/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const FridgePage: NextPage = () => {
onClose: onCloseIngredientAddModal,
} = useDisclosure();

console.log(ingredientId);
const [currentCategory, setCurrentCategory] = useState('전체');

const data = useGetIngredientList();
Expand Down
5 changes: 3 additions & 2 deletions src/pages/mypage/profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const PROFILES: Array<{ string: ProfileEnum; pointColor: string }> = [
},
];

const FriendsListPage: NextPage = () => {
const ProfilePage: NextPage = () => {
const [selectedProfile, setSelectedProfile] = useState<ProfileEnum>('BLUE');
const [nickname, setNickname] = useState('');
const [isNicknameAvailable, setIsNicknameAvailable] = useState(false);
Expand Down Expand Up @@ -137,6 +137,7 @@ const FriendsListPage: NextPage = () => {
<div className="flex gap-[12px]">
{PROFILES.map(({ string, pointColor }) => (
<Image
key={string}
style={
selectedProfile === string
? { border: `solid 2px ${pointColor}` }
Expand Down Expand Up @@ -166,4 +167,4 @@ const FriendsListPage: NextPage = () => {
);
};

export default FriendsListPage;
export default ProfilePage;

0 comments on commit 0f62678

Please sign in to comment.