diff --git a/app/assets/styles/home.css b/app/assets/styles/home.css
index 7fc93b8..43919d4 100644
--- a/app/assets/styles/home.css
+++ b/app/assets/styles/home.css
@@ -78,4 +78,13 @@
.report-nickname:hover {
background-color: #383d49;
cursor: default;
+}
+
+.report-content-header {
+ font-weight: bold;
+}
+
+.report-title-header {
+ display: flex;
+ justify-content: space-between;
}
\ No newline at end of file
diff --git a/app/components/itemDialog.tsx b/app/components/itemDialog.tsx
index f1a85f9..e7744a9 100644
--- a/app/components/itemDialog.tsx
+++ b/app/components/itemDialog.tsx
@@ -1,84 +1,9 @@
import type {BlacklistItem} from "~/classes/blacklistItem";
-import {List, Dialog, DialogContent, DialogTitle, ListItem, ListItemText, Divider} from "@mui/material";
-
-function NicknameList({nicknames}: {nicknames: string[]|undefined}){
- if (!nicknames){
- return (<>>)
- }
- if (nicknames.length > 0){
- return (
- <>
-
Nicknames:
-
- {nicknames.map((item) => {
- return {item}
- })}
-
- >
- )
- } else {
- return (<>>)
- }
-}
-
-function CommentsList({comments}: {comments: string[]|undefined}){
- if (!comments){
- return (<>>)
- }
- if (comments.length > 0){
- return (
- <>
- Comments:
-
- {comments.map((item) => {
- return {item}
- })}
-
- >
- )
- } else {
- return (<>>)
- }
-}
-
-function Tag({tag, name}:{tag: number|undefined, name: string}){
- let classColor = "report-tag-count-good";
- if (tag){
- if (tag <= 10){
- classColor = "report-tag-count-good";
- } else if (tag > 10 && tag <= 25) {
- classColor = "report-tag-count-ok";
- } else if (tag > 25 && tag <= 50) {
- classColor = "report-tag-count-bad";
- } else {
- classColor = "report-tag-count-very-bad";
- }
- }
-
- return (
- <>
-
- {tag}
- {name}
-
- >
- )
-}
-
-function TagList({afk, cheater, griefer, toxic, useless, smurf}:{afk: number|undefined, cheater: number|undefined, griefer: number|undefined, toxic: number|undefined, useless: number|undefined, smurf: number|undefined}){
- return (
- <>
-
-
-
-
-
-
-
-
- >
- )
-}
+import {Dialog, DialogContent, DialogTitle, Divider} from "@mui/material";
+import NicknameList from "~/components/itemDialog/nicknameList";
+import CommentsList from "~/components/itemDialog/commentsList";
+import TagList from "~/components/itemDialog/tagList";
+import TitleHeader from "~/components/itemDialog/titleHeader";
export default function ItemDialog({ blacklistItem, open, handleClose }: { blacklistItem: BlacklistItem|null, open: boolean, handleClose: Function }){
return (
@@ -87,7 +12,7 @@ export default function ItemDialog({ blacklistItem, open, handleClose }: { black
onClose={() => handleClose()}
>
- {blacklistItem?.link}
+
>)
+ }
+ if (comments.length > 0){
+ return (
+ <>
+ Comments:
+
+ {comments.map((item) => {
+ return {item}
+ })}
+
+ >
+ )
+ } else {
+ return (<>>)
+ }
+}
\ No newline at end of file
diff --git a/app/components/itemDialog/nicknameList.tsx b/app/components/itemDialog/nicknameList.tsx
new file mode 100644
index 0000000..aaee2ca
--- /dev/null
+++ b/app/components/itemDialog/nicknameList.tsx
@@ -0,0 +1,21 @@
+import {List, ListItem} from "@mui/material";
+
+export default function NicknameList({nicknames}: {nicknames: string[]|undefined}){
+ if (!nicknames){
+ return (<>>)
+ }
+ if (nicknames.length > 0){
+ return (
+ <>
+ Nicknames:
+
+ {nicknames.map((item) => {
+ return {item}
+ })}
+
+ >
+ )
+ } else {
+ return (<>>)
+ }
+}
\ No newline at end of file
diff --git a/app/components/itemDialog/tag.tsx b/app/components/itemDialog/tag.tsx
new file mode 100644
index 0000000..9da8187
--- /dev/null
+++ b/app/components/itemDialog/tag.tsx
@@ -0,0 +1,23 @@
+export default function Tag({tag, name}:{tag: number|undefined, name: string}){
+ let classColor = "report-tag-count-good";
+ if (tag){
+ if (tag <= 10){
+ classColor = "report-tag-count-good";
+ } else if (tag > 10 && tag <= 25) {
+ classColor = "report-tag-count-ok";
+ } else if (tag > 25 && tag <= 50) {
+ classColor = "report-tag-count-bad";
+ } else {
+ classColor = "report-tag-count-very-bad";
+ }
+ }
+
+ return (
+ <>
+
+ {tag}
+ {name}
+
+ >
+ )
+}
\ No newline at end of file
diff --git a/app/components/itemDialog/tagList.tsx b/app/components/itemDialog/tagList.tsx
new file mode 100644
index 0000000..9742371
--- /dev/null
+++ b/app/components/itemDialog/tagList.tsx
@@ -0,0 +1,16 @@
+import Tag from "~/components/itemDialog/tag";
+
+export default function TagList({afk, cheater, griefer, toxic, useless, smurf}:{afk: number|undefined, cheater: number|undefined, griefer: number|undefined, toxic: number|undefined, useless: number|undefined, smurf: number|undefined}){
+ return (
+ <>
+
+
+
+
+
+
+
+
+ >
+ )
+}
\ No newline at end of file
diff --git a/app/components/itemDialog/titleHeader.tsx b/app/components/itemDialog/titleHeader.tsx
new file mode 100644
index 0000000..54da542
--- /dev/null
+++ b/app/components/itemDialog/titleHeader.tsx
@@ -0,0 +1,15 @@
+import {IconButton} from "@mui/material";
+import CloseIcon from '@mui/icons-material/Close';
+
+export default function TitleHeader({ name, handleClose }:{ name: string|undefined, handleClose: Function }){
+ return (
+ <>
+
+
{name}
+
+ handleClose()}/>
+
+
+ >
+ )
+}
\ No newline at end of file