-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into feature#53-mypage-…
…form
- Loading branch information
Showing
181 changed files
with
4,963 additions
and
3,002 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -8,42 +8,42 @@ import { | |
import { IconProps } from '@radix-ui/react-icons/dist/types' | ||
import Link from 'next/link' | ||
|
||
type LinkIconData = { | ||
type Channel = { | ||
id: number | ||
name: string | ||
href: string | ||
icon: ComponentType<IconProps> | ||
alt: string | ||
} | ||
|
||
export const LinkIcon = () => { | ||
export const ChannelIcons = () => { | ||
return ( | ||
<div className="absolute bottom-8 right-12 flex gap-4"> | ||
{linkIconData.map((linkIcon) => ( | ||
<Link href={linkIcon.href} key={linkIcon.id}> | ||
<linkIcon.icon className="h-6 w-6" /> | ||
<div className="bottom-8 right-12 flex gap-4 sm:absolute"> | ||
{channels.map((channel) => ( | ||
<Link href={channel.href} key={channel.id}> | ||
<channel.icon className="h-6 w-6" /> | ||
</Link> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
const linkIconData: LinkIconData[] = [ | ||
const channels: Channel[] = [ | ||
{ | ||
id: 0, | ||
name: 'HAEDAL Email', | ||
href: 'mailto:[email protected]', | ||
icon: EnvelopeClosedIcon, | ||
alt: 'HAEDAL Email Link', | ||
}, | ||
{ | ||
id: 1, | ||
name: 'HAEDAL GitHub', | ||
href: 'https://github.com/KNU-HAEDAL', | ||
icon: GitHubLogoIcon, | ||
alt: 'HAEDAL Github Link', | ||
}, | ||
{ | ||
id: 2, | ||
name: 'HAEDAL Instagram', | ||
href: 'https://www.instagram.com/knu.haedal/', | ||
icon: InstagramLogoIcon, | ||
alt: 'HAEDAL Instagram Link', | ||
}, | ||
] |
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
10 changes: 7 additions & 3 deletions
10
src/app/(main)/_components/header/profile-button/dropdown-menu/LogoutButton.tsx
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
File renamed without changes.
7 changes: 5 additions & 2 deletions
7
...[activityId]/_components/ActivityList.tsx → ...[activityId]/_components/ActivityList.tsx
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
File renamed without changes.
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
21 changes: 21 additions & 0 deletions
21
src/app/(main)/activity/[semesterId]/[activityId]/_components/semester/RedirectSemester.tsx
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,21 @@ | ||
import { useEffect } from 'react' | ||
|
||
import { useRouter } from 'next/navigation' | ||
|
||
import { ActivitySemesterSkeleton } from '@/components/feature' | ||
import { Semester } from '@/types/activity' | ||
|
||
interface RedirectSemesterProps { | ||
semesters: Semester[] | ||
} | ||
export const RedirectSemester = ({ semesters }: RedirectSemesterProps) => { | ||
const router = useRouter() | ||
|
||
useEffect(() => { | ||
const lastSemester = semesters[semesters.length - 1] | ||
|
||
router.push(`/activity/${lastSemester.semesterId}/-1`) | ||
}, [router, semesters]) | ||
|
||
return <ActivitySemesterSkeleton /> | ||
} |
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
1 change: 1 addition & 0 deletions
1
src/app/(main)/activity/[semesterId]/[activityId]/_components/semester/index.ts
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 @@ | ||
export { SemesterList } from './SemesterList' |
Oops, something went wrong.