diff --git a/app/(main)/compare/page.tsx b/app/(main)/compare/page.tsx index 934b266..604fe92 100644 --- a/app/(main)/compare/page.tsx +++ b/app/(main)/compare/page.tsx @@ -210,11 +210,11 @@ export default async function Page({ series={[ ...(professorStats.map((professor) => ({ name: professor.id, - data: professor.ratingDistribution, + data: professor.ratingDistribution.reverse(), })) ?? []), ...(courseStats.map((course) => ({ name: course.id, - data: course.ratingDistribution, + data: course.ratingDistribution.reverse(), })) ?? []), ]} categories={[5, 4, 3, 2, 1]} diff --git a/app/(main)/courses/[id]/@statistics/page.tsx b/app/(main)/courses/[id]/@statistics/page.tsx index a06ee6b..c5166db 100644 --- a/app/(main)/courses/[id]/@statistics/page.tsx +++ b/app/(main)/courses/[id]/@statistics/page.tsx @@ -186,7 +186,12 @@ export default async function Page({

Rating Distribution

diff --git a/app/(main)/professors/[id]/@statistics/page.tsx b/app/(main)/professors/[id]/@statistics/page.tsx index bc51c5c..170fa36 100644 --- a/app/(main)/professors/[id]/@statistics/page.tsx +++ b/app/(main)/professors/[id]/@statistics/page.tsx @@ -194,7 +194,7 @@ export default async function Page({ series={[ { name: 'Rating Distribution', - data: reviewDistribution, + data: reviewDistribution.reverse(), }, ]} categories={[5, 4, 3, 2, 1]} diff --git a/components/molecules/client/profile-btn/component.tsx b/components/molecules/client/profile-btn/component.tsx index 0ad5261..e812ac8 100644 --- a/components/molecules/client/profile-btn/component.tsx +++ b/components/molecules/client/profile-btn/component.tsx @@ -3,7 +3,7 @@ import { LinkBtn } from '@/components/atoms'; import { cn } from '@/utils/cn'; import { useSession } from '@/wrappers/session-provider'; -import { UserIcon } from '@heroicons/react/20/solid'; +import { UserCircleIcon } from '@heroicons/react/24/solid'; interface Props extends Omit< @@ -20,8 +20,9 @@ export const ProfileBtn: React.FC = ({ className, ...props }) => { {...props} href="/profile" variant="tertiary" + aria-label="Profile" > - Profile + {' '} ); } diff --git a/components/organisms/schedule/component.tsx b/components/organisms/schedule/component.tsx index 451e61f..9c87ee7 100644 --- a/components/organisms/schedule/component.tsx +++ b/components/organisms/schedule/component.tsx @@ -27,7 +27,7 @@ export const Schedule: React.FC = (props) => (