Skip to content

Commit

Permalink
chore: Counter css 깨짐 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
naro-Kim committed Jul 1, 2023
1 parent 34bb3a5 commit dbf84dc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/app/write/components/Counter/Counter.css.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ globalStyle('input', {

globalStyle('input[type="number"]', {
...fontVariant.body2,
width: 'min-content',
textAlign: 'center',
outline: 'none',
});
Expand Down
10 changes: 7 additions & 3 deletions src/app/write/components/MapModal/MapModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ const MapModal = () => {
};

const onClick = (data: any) => {
method.setValue('locationName', `${data.road_address_name} ${data.place_name}`);
method.setValue('x', parseFloat(data.x));
method.setValue('y', parseFloat(data.y));
if (data) {
method.setValue('locationName', `${data.road_address_name} ${data.place_name}`);
if (data.x && data.y) {
method.setValue('x', parseFloat(data.x));
method.setValue('y', parseFloat(data.y));
}
}
closeModal();
};
return (
Expand Down
13 changes: 13 additions & 0 deletions src/app/write/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,16 @@ export const agelist = [
'99',
'100',
];

export const MEETING_DATE = 'meetingDate';
export const MEEETING_TIME = 'meetingTime';
export const MAX_APPLY = 'maxApply';
export const MIN_AGE = 'minAge';
export const MAX_AGE = 'maxAge';
export const LOCATION_NAME = 'locationName';
export const X = 'x';
export const Y = 'y';
export const LOCATION_DETAIL = 'locationDetail';
export const TITLE = 'title';
export const CONTENT = 'content';
export const CHAT_LINK = 'chatLink';
2 changes: 1 addition & 1 deletion src/app/write/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Typography } from '@/components';
import { wrapper } from './style.css';
import { useEffect } from 'react';

export default function StepOnePage() {
export default function Write() {
const [step, { nextStep }] = useFunnel(['1', '2']);

const preventClose = (e: BeforeUnloadEvent) => {
Expand Down

0 comments on commit dbf84dc

Please sign in to comment.