diff --git a/src/components/ProblemTable.tsx b/src/components/ProblemTable.tsx index 84422f4c9..c679f4980 100644 --- a/src/components/ProblemTable.tsx +++ b/src/components/ProblemTable.tsx @@ -25,6 +25,7 @@ export interface ProblemTableProps { data: ProblemServiceModel.ProblemInfo[]; showActions?: boolean; enableNavigation?: boolean; + className?: string; } const ProblemTable: React.FC = (props) => { @@ -50,7 +51,7 @@ const ProblemTable: React.FC = (props) => { ); return ( - +
{ if (!props.showActions) { diff --git a/src/layouts/LanguageMenu.tsx b/src/layouts/LanguageMenu.tsx index 24fc8fa3d..762941aeb 100644 --- a/src/layouts/LanguageMenu.tsx +++ b/src/layouts/LanguageMenu.tsx @@ -6,13 +6,17 @@ import { LanguageIcon } from "@heroicons/react/24/outline"; import { changeLanguage } from "i18next"; import { LANGUAGE_SELECTIONS } from "../i18n/i18n"; -const LanguageMenu: React.FC = () => { +interface LanguageMenuProps { + className?: string; +} + +const LanguageMenu: React.FC = (props) => { const { t } = useTranslation(); return ( <> {/* Profile dropdown */} - + Open user menu diff --git a/src/layouts/userLayout/Header.tsx b/src/layouts/userLayout/Header.tsx index 907c3647d..df1c829e9 100644 --- a/src/layouts/userLayout/Header.tsx +++ b/src/layouts/userLayout/Header.tsx @@ -2,7 +2,6 @@ import { Fragment } from "react"; import { Disclosure } from "@headlessui/react"; import { Bars3Icon, - BellIcon, XMarkIcon, TrophyIcon, ListBulletIcon, @@ -12,6 +11,7 @@ import { joinClasses } from "../../utils/common"; import LanguageMenu from "../LanguageMenu"; import { useTranslation } from "react-i18next"; import { useNavigate } from "react-router-dom"; +import { Divider } from "@nextui-org/react"; const iconPath = `${import.meta.env.BASE_URL}images/oj-lab-icon.svg`; @@ -108,24 +108,6 @@ export default function Header() { -
- {navigation.map((item) => ( - { - navigate(item.href); - }} - > - {t(item.name)} - - ))} -
@@ -143,27 +125,41 @@ export default function Header() { {user.email}
- +
{userNavigation.map((item) => ( { + navigate(item.href); + }} > {item.name} ))}
+ +
+ {navigation.map((item) => ( + { + navigate(item.href); + }} + > + {t(item.name)} + + ))} +
)} diff --git a/src/pages/Problem.tsx b/src/pages/Problem.tsx index d61ec1aec..a99465ef7 100644 --- a/src/pages/Problem.tsx +++ b/src/pages/Problem.tsx @@ -29,14 +29,14 @@ const Problem: React.FC = () => { return ( -
-
+
+
-
+
{ return ( -
-
- -
-
+
+ +