Skip to content

Commit

Permalink
Adjust UI
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Aug 3, 2024
1 parent ce01ea5 commit 15b82d2
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 29 deletions.
24 changes: 24 additions & 0 deletions src/components/icons/tabler/ActivityIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { FC } from "react";
import { DefaultIconStrokeWidth } from "./defaults";

const ActivityIcon: FC<{
className?: string;
}> = (props) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={DefaultIconStrokeWidth}
strokeLinecap="round"
strokeLinejoin="round"
className={props.className}
>
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M3 12h4l3 8l4 -16l3 8h4" />
</svg>
);
};

export default ActivityIcon;
2 changes: 1 addition & 1 deletion src/components/judge/JudgeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const JudgeTable: React.FC<JudgeTableProps> = (props) => {
}}
key={idx}
>
<td className="flex items-center gap-2 py-2">
<td className="flex items-center gap-3 py-2">
<div className="avatar">
<div className="w-8 rounded-full">
<img
Expand Down
2 changes: 0 additions & 2 deletions src/components/problem/ProblemTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import PencilIcon from "../icons/tabler/PencilIcon";
import { joinClasses } from "@/utils/common";

const columns = [
{ name: "Slug", uid: "slug" },
{ name: "Title", uid: "title" },
{ name: "Tags", uid: "tags" },
{ name: "Actions", uid: "actions" },
Expand Down Expand Up @@ -50,7 +49,6 @@ const ProblemTable: React.FC<ProblemTableProps> = (props) => {
if (props.enableRouting) navigate(problemInfo.slug);
}}
>
<td>{problemInfo.slug}</td>
<th>{problemInfo.title}</th>
<td>
<div className="space-x-2">
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/Menu.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import ActivityIcon from "@/components/icons/tabler/ActivityIcon";
import FileTextIcon from "@/components/icons/tabler/FileTextIcon";
import PackageIcon from "@/components/icons/tabler/PackageIcon";
import ReportIcon from "@/components/icons/tabler/ReportIcon";
import UsersIcon from "@/components/icons/tabler/UsersIcon";
import { useUser } from "@/hooks/user";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";

const navigation = [
{ name: "Problems", href: "/problem", icon: FileTextIcon },
{ name: "Judges", href: "/judge", icon: ReportIcon },
{ name: "Judges", href: "/judge", icon: ActivityIcon },
];

const adminNavigation = [
Expand Down
24 changes: 0 additions & 24 deletions src/layouts/PageMenu.tsx

This file was deleted.

0 comments on commit 15b82d2

Please sign in to comment.