Skip to content

Commit

Permalink
[Refactor]: 마이너 UI 이슈 수정 (#90)
Browse files Browse the repository at this point in the history
* fix: textfield 가로길이 안맞는 부분 수정

* fix: scroll 반 쯤 내려가 있는 문제 해결
  • Loading branch information
eugene028 authored Aug 7, 2024
1 parent 93e24cd commit 0fd9a5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ import { media } from '@/styles';
import { color } from 'wowds-tokens';
import Header from '@/components/layout/Header';
import Footer from '@/components/layout/Footer';

import { Outlet } from 'react-router-dom';
import { useLayoutEffect } from 'react';
import { Outlet, useLocation } from 'react-router-dom';
import GlobalSize from '@/constants/globalSize';
import ApiErrorBoundary from '@/components/ApiErrorBoundary';

const Layout = () => {
const location = useLocation();

useLayoutEffect(() => {
window.scrollTo(0, 0);
}, [location]);

return (
<ApiErrorBoundary>
<Container>
Expand Down
1 change: 1 addition & 0 deletions src/pages/SignUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export const SignUp = () => {
render={({ field, fieldState }) => (
<TextFieldWrapper>
<TextField
style={{ minWidth: '100%' }}
label="이메일 주소"
error={fieldState.invalid}
ref={field.ref}
Expand Down

0 comments on commit 0fd9a5d

Please sign in to comment.