Skip to content

Conversation

@devmanta
Copy link
Collaborator

๐Ÿ“Œ Related Issue

#5

๐Ÿ“ Description

  • ์‚ฌ์ด๋“œ๋ฐ”, ํ—ค๋” ๊ตฌ์กฐ ์ˆ˜์ • ๋ฐ ์ผ๋ถ€ css ์ถ”๊ฐ€

๐Ÿ“ธ Screenshot

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์–˜๋Š” ์•„์ง ๊ฐ€์ ธ๋‹ค ์“ฐ๋Š”๊ณณ์€ ์—†๋Š”๋ฐ ๋‚˜์ค‘์— ์“ฐ๋ ค๊ณ ? ์ถ”๊ฐ€๋งŒ ํ•ด๋†จ์Šต๋‹ˆ๋‹ค

Copy link
Collaborator Author

@devmanta devmanta Nov 16, 2024

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',
Copy link
Collaborator Author

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}>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์—ฌ๊ธฐ์„œ ๋ฒ„ํŠผ classname์„ ๋„˜๊ฒจ์คฌ๋Š”๋ฐ button์ปดํฌ๋„ŒํŠธ css๊ฐ€ ๋‚˜์ค‘์— ๊ทธ๋ ค์ง€๋”๋ผ๊ณ ์š”..?
๊ทธ๋ž˜์„œ !important ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค ์ผ๋‹จ์€..?
ํ˜น์‹œ ๋ฐฉ๋ฒ•์•„์‹œ๋Š”๋ถ„....?

Copy link
Owner

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';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์š”๊ฑฐ axiosInstance์—์„œ ๊ฐ€์ ธ๋‹ค ์“ฐ๋ ค๊ตฌ export ์ถ”๊ฐ€ํ–ˆ์–ด์š”..!

@devmanta devmanta self-assigned this Nov 16, 2024
@devmanta devmanta added ๐ŸŽจHTML&CSS Issues or tasks specifically related to HTML structure or CSS styling ๐Ÿ“ฌAPI Tasks related to integrating or connecting to external APIs labels Nov 16, 2024
@devmanta devmanta requested review from a user, najitwo and naseungyeop November 16, 2024 09:44
Copy link
Owner

@najitwo najitwo left a 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);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
setLoading(true);
if (loading) return;
setLoading(true);

์ด๋ฏธ ๋กœ๋”ฉ ์ค‘์ธ ๊ฒฝ์šฐ ์ค‘๋ณต ํ˜ธ์ถœ ๋ฐฉ์ง€ํ•˜๊ธฐ ์œ„ํ•ด ์ด๋Ÿฐ ์ฒ˜๋ฆฌ๊ฐ€ ์žˆ์œผ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

Copy link
Collaborator Author

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;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resizeํ• ๋•Œ height ๊ฐ’๋„ ํ•„์š”ํ•œ๊ฐ€์š”? ๐Ÿค”

Copy link
Collaborator Author

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);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์—ฌ๊ธฐ์— ์—๋Ÿฌ ์ฒ˜๋ฆฌ ๋กœ์ง์ด ์žˆ์œผ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด์นœ๊ตฌ๋Š” ์•„์ง ๋ฏธ์™„์„ฑ...์ด๊ธดํ•ด์„œ
์—๋Ÿฌ์ฒ˜๋ฆฌ ๊ณ ๋ คํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค~! ๐Ÿ™‡๐Ÿปโ€โ™€๏ธ (์•„๋‹˜ ์—†์•จ์ˆ˜๋„...?)

@devmanta devmanta merged commit 628f69d into develop Nov 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

๐Ÿ“ฌAPI Tasks related to integrating or connecting to external APIs ๐ŸŽจHTML&CSS Issues or tasks specifically related to HTML structure or CSS styling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants