-
Notifications
You must be signed in to change notification settings - Fork 1
[feat] add header and sidebar css and types #11
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
Conversation
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.
์๋ ์์ง ๊ฐ์ ธ๋ค ์ฐ๋๊ณณ์ ์๋๋ฐ ๋์ค์ ์ฐ๋ ค๊ณ ? ์ถ๊ฐ๋ง ํด๋จ์ต๋๋ค
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.
ํ .. user ์ชฝ์ ์ฌ๊ธฐ์ ๊ธฐ์ ์ฐ๋๋ฐ ๊ณตํต ํ์
์ผ๋ก ๋นผ์ ๊ฐ์ ธ๋ค ์จ๋ ์ข์๊ฒ๊ฐ์์
์ผ๋จ์.. ์๋กท๊ฒ ๋๊ณ ์ถํ ํฉ์น๋ ์์
ํ์ํ ๊ฒ๊ฐ์ต๋๋ค
| export default function Button({ | ||
| className = '', | ||
| children, | ||
| type = 'button', |
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.
๊ณตํต์ผ๋ก ์ฐ๋๊ฑฐ์ button type default๊ฐ ์ถ๊ฐํด๋จ๋๋ฐ ๋ค๋ฅธ ์๊ฒฌ์์ผ์๋ฉด ๋ง์๋ถํ๋๋ฆฝ๋๋ค~
์ผ๋ฐ์ ์ผ๋ก default๋ submit์ธ๋ฐ button์ด ์ฌ์ฉ๋น๋๊ฐ ํจ์ฌ ๋์์ button์ผ๋ก default ๋ฃ์์ต๋๋ค
| return ( | ||
| <div> | ||
| <div className={styles.sideBar}> | ||
| <Button aria-label="ํํ์ด์ง ์ด๋" className={styles.button}> |
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.
์ฌ๊ธฐ์ ๋ฒํผ classname์ ๋๊ฒจ์คฌ๋๋ฐ button์ปดํฌ๋ํธ css๊ฐ ๋์ค์ ๊ทธ๋ ค์ง๋๋ผ๊ณ ์..?
๊ทธ๋์ !important ์ฌ์ฉํ์ต๋๋ค ์ผ๋จ์..?
ํน์ ๋ฐฉ๋ฒ์์๋๋ถ....?
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.
import styles from './SideBar.module.css';
์ ์ธ์ ๊ฐ์ฅ ์๋์ชฝ์ ์ ์ธํ๋ ๊ฒ์ ์ํํํฉ์๋ค ๐คฃ
| @@ -1,4 +1,4 @@ | |||
| const BASE_URL = 'https://sp-taskify-api.vercel.app/10-1'; | |||
| export const BASE_URL = 'https://sp-taskify-api.vercel.app/10-1'; | |||
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.
์๊ฑฐ axiosInstance์์ ๊ฐ์ ธ๋ค ์ฐ๋ ค๊ตฌ export ์ถ๊ฐํ์ด์..!
najitwo
left a comment
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.
์ ๋ฐ์ ์ผ๋ก ์ฝ๋๊ฐ ๊น๋ํ๊ณ ์ฌ์ฌ์ฉ์ฑ์ด ๋์ ๋ณด์
๋๋ค.๐ฏ
์๊ทธ๋งํ๊ฒ ๊ฐ์ ์ ์ ์๋๋ ธ์ผ๋ ํ์ธ ๋ถํ๋๋ฆฝ๋๋ค.!
| const [error, setError] = useState<AxiosError | null>(null); | ||
|
|
||
| const fetchData = useCallback(async () => { | ||
| setLoading(true); |
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.
| setLoading(true); | |
| if (loading) return; | |
| setLoading(true); |
์ด๋ฏธ ๋ก๋ฉ ์ค์ธ ๊ฒฝ์ฐ ์ค๋ณต ํธ์ถ ๋ฐฉ์งํ๊ธฐ ์ํด ์ด๋ฐ ์ฒ๋ฆฌ๊ฐ ์์ผ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.
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.
@najitwo ์์ธ์ง?๋ชจ๋ฅด๊ฒ ๋๋ฐ gpt ํํ
๋ฆฌํํ ๋ง ํด๋ฌ๋ผ๊ณ ํ๋ฉด ์ค๋ฅผ ์์ ๋๋ผ๊ตฌ์...?
useAPi custom hook ์ฐพ์๋ด๋ loading ์ค์ด๋ฉด returnํ๋ ์ฝ๋๋ ์์ด์ ๋จผ๊ฐ ์ด์ ๊ฐ ์์ง ์์๊น ์ถ๊ธดํ๋ฐ
์๊ฑฐ TODO ์ฃผ์์ผ๋ก ํด๋๊ณ ๊ณ ๋ ค์ฌํญ์ผ๋ก ๋ฃ์ด๋๊ฒ ์ต๋๋ค! ๐
|
|
||
| interface WindowSize { | ||
| width: number; | ||
| height: number; |
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.
resizeํ ๋ height ๊ฐ๋ ํ์ํ๊ฐ์? ๐ค
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.
@najitwo css media ๋๋น ๊ด์ ์์๋ ํ์์๊ธดํฉ๋๋ค ใ
ใ
๊ทผ๋ฐ ์ด๋ฆ์ด? useWindowSize๋๊น ๋์ด๋ ๊ปด์...?
| export const apiCall = async <T>( | ||
| config: AxiosRequestConfig | ||
| ): Promise<AxiosResponse<T>> => { | ||
| return axiosInstance.request<T>(config); |
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.
์ฌ๊ธฐ์ ์๋ฌ ์ฒ๋ฆฌ ๋ก์ง์ด ์์ผ๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค!
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.
์ด์น๊ตฌ๋ ์์ง ๋ฏธ์์ฑ...์ด๊ธดํด์
์๋ฌ์ฒ๋ฆฌ ๊ณ ๋ คํ๊ฒ ์ต๋๋ค~! ๐๐ปโโ๏ธ (์๋ ์์จ์๋...?)
๐ Related Issue
๐ Description
๐ธ Screenshot