-
Notifications
You must be signed in to change notification settings - Fork 1
refactor: rename 404 to NotFound and unify export style #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kwondongwoo0424
wants to merge
2
commits into
DSM-PICK:develop
Choose a base branch
from
kwondongwoo0424:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import { useNavigate } from "react-router-dom"; | ||
| import Button from "@/components/button"; | ||
| import styled from "styled-components"; | ||
|
|
||
| const NotFound = () => { | ||
| const router = useNavigate(); | ||
| return ( | ||
| <Container> | ||
| <h1>404 Not Found</h1> | ||
| <Button width="100" onClick={() => router("/main")}> | ||
| 메인으로 가기 | ||
| </Button> | ||
| </Container> | ||
| ); | ||
| }; | ||
|
|
||
| export default NotFound; | ||
|
|
||
| const Container = styled.div` | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| height: 100vh; | ||
| gap: 16px; | ||
| `; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Button의 width 속성값을 확인해주세요.
width="100"에서 단위가 명시되지 않았습니다. Button 컴포넌트의 API에 따라"100%"또는"100px"등의 명시적인 단위가 필요할 수 있습니다.다음 스크립트를 실행하여 Button 컴포넌트의 width prop 타입을 확인하세요:
🏁 Script executed:
Length of output: 2690
Button 컴포넌트의 width prop에 CSS 단위 명시 필요
Button 컴포넌트의
widthprop은string타입으로 정의되어 있으며, 이 값이 styled-components를 통해 CSSwidth속성으로 직접 적용됩니다. CSS는 0이 아닌 길이 값에 단위를 요구하므로,width="100"은 유효하지 않은 CSS입니다.스토리의 예시에서 확인할 수 있듯이
width: "100px"처럼 명시적인 단위를 포함해야 합니다. 현재 코드를width="100px"또는width="100%"등으로 수정하세요.🤖 Prompt for AI Agents