-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from GihoKo/dev
feat: 유저 Profile 페이지 리팩토링 및 채널 수정 모달 구현
- Loading branch information
Showing
34 changed files
with
831 additions
and
679 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,11 @@ | ||
import { useQuery } from '@tanstack/react-query'; | ||
import { Channel } from '../../types/channel'; | ||
import { getChannelById } from '../services/channel'; | ||
|
||
export default function useGetChannelById(channelId: string | undefined) { | ||
const queryKey = ['channels', channelId]; | ||
return useQuery<Channel, Error>({ | ||
queryKey: queryKey, | ||
queryFn: () => getChannelById(channelId), | ||
}); | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Empty file.
This file contains 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,46 @@ | ||
import styled from 'styled-components'; | ||
|
||
interface DescriptionProps { | ||
title: string; | ||
text: string; | ||
} | ||
|
||
export default function Description({ title, text }: DescriptionProps) { | ||
return ( | ||
<Wrapper> | ||
<Title>{title}</Title> | ||
<Text>{text}</Text> | ||
</Wrapper> | ||
); | ||
} | ||
|
||
const Wrapper = styled.div` | ||
border-radius: 16px; | ||
border: 1px solid var(--grey-grey300); | ||
width: 320px; | ||
height: 160px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
padding: 32px; | ||
background-color: var(--grey-grey150); | ||
@media (max-width: 992px) { | ||
width: 100%; | ||
padding: 16px; | ||
} | ||
`; | ||
|
||
const Title = styled.div` | ||
font-size: 20px; | ||
color: var(--grey-grey900); | ||
`; | ||
|
||
const Text = styled.span` | ||
font-size: 16px; | ||
color: var(--grey-grey600); | ||
`; |
This file contains 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
This file contains 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
Oops, something went wrong.