Skip to content

Commit

Permalink
fix: info 라우트 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
wokbjso committed Sep 13, 2024
1 parent 2a5ed6e commit 9ad6e20
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/setting/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export default function Page() {
};

const handleClickTerms = () => {
router.push('/setting/info/terms');
router.push('/setting/terms');
};

const handleClickPrivacyPolicy = () => {
router.push('/setting/info/privacy-policy');
router.push('/setting/privacy-policy');
};

const handleGoToInquiry = () => {
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions features/login/components/organisms/login-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export const LoginScreen = ({ isAnimate = true }: LoginScreen) => {
</button>
</div>
<p className={agreementStyles}>
시작함으로써 <Link href="/setting/info/terms">이용약관</Link>{' '}
<Link href="/setting/info/privacy-policy">개인정보 처리방침</Link>
시작함으로써 <Link href="/setting/terms">이용약관</Link>{' '}
<Link href="/setting/privacy-policy">개인정보 처리방침</Link>
동의합니다.
</p>
</div>
Expand Down
7 changes: 1 addition & 6 deletions features/record/components/organisms/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { useRecordForm } from '../../hooks';
import { saveSwimTime } from '../../server-actions';
import { formSubInfoState } from '../../store/form-sub-info';
import { formSectionStyles } from '../../styles/form-section';
import { compareTime, isFuture } from '../../utils';
import { isFuture } from '../../utils';
import { DiarySection } from './diary-section';
import { DistancePageModal } from './distance-page-modal';
import { EquipmentSection } from './equipment-section';
Expand Down Expand Up @@ -184,11 +184,6 @@ export function Form({ prevSwimStartTime, prevSwimEndTime }: FormProps) {
const onSubmit: SubmitHandler<RecordRequestProps> = async (data) => {
if (isLoading || !startTime || !endTime) return;

//종료 시간이 시작 시간보다 이전일 때
if (!compareTime(startTime, endTime)) {
toast('시간을 다시 설정해주세요', { type: 'warning' });
return;
}
//기록 수정 모드일 때
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { poolName, laneMeter, totalDistance, ...restData } = data;
Expand Down
2 changes: 1 addition & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ export async function middleware(request: NextRequest) {

export const config = {
matcher: [
'/((?!api|_next/static|_next/image|favicon.ico|fonts|images|login|kakao/oauth|google/oauth|setting/info).*)',
'/((?!api|_next/static|_next/image|favicon.ico|fonts|images|login|kakao/oauth|google/oauth|setting/privacy-policy|setting/terms).*)',
],
};

0 comments on commit 9ad6e20

Please sign in to comment.