mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-06-28 14:44:15 +00:00
chore: update packages, format all files, fix downshift errors
This commit is contained in:
parent
df7901b525
commit
a6c2d924f1
36 changed files with 864 additions and 1154 deletions
|
|
@ -54,10 +54,7 @@ export default function AdminBanner() {
|
|||
<span>{data.message}</span>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={handleClose}
|
||||
className="min-sm:absolute right-2 cursor-pointer p-1.5"
|
||||
>
|
||||
<button onClick={handleClose} className="min-sm:absolute right-2 cursor-pointer p-1.5">
|
||||
<Icon icon="humbleicons:times" className="text-2xl min-w-6" />
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ export default function PunishmentDeletionDialog({ punishmentId }: Props) {
|
|||
</div>
|
||||
</div>
|
||||
</div>,
|
||||
document.body
|
||||
document.body,
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export default function RegenerateImagesButton() {
|
|||
</div>
|
||||
</div>
|
||||
</div>,
|
||||
document.body
|
||||
document.body,
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ export default async function Reports() {
|
|||
report.status == "OPEN"
|
||||
? "bg-orange-200 text-orange-800 border-orange-400"
|
||||
: report.status == "RESOLVED"
|
||||
? "bg-green-200 text-green-800 border-green-400"
|
||||
: "bg-zinc-200 text-zinc-800 border-zinc-400"
|
||||
? "bg-green-200 text-green-800 border-green-400"
|
||||
: "bg-zinc-200 text-zinc-800 border-zinc-400"
|
||||
}`}
|
||||
>
|
||||
{report.status}
|
||||
|
|
@ -68,10 +68,7 @@ export default async function Reports() {
|
|||
<div className="grid grid-cols-4 text-xs text-zinc-600 mt-4 max-sm:grid-cols-2">
|
||||
<div>
|
||||
<p>Target ID</p>
|
||||
<Link
|
||||
href={report.reportType === "MII" ? `/mii/${report.targetId}` : `/profile/${report.targetId}`}
|
||||
className="text-blue-600 text-sm"
|
||||
>
|
||||
<Link href={report.reportType === "MII" ? `/mii/${report.targetId}` : `/profile/${report.targetId}`} className="text-blue-600 text-sm">
|
||||
{report.targetId}
|
||||
</Link>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -146,8 +146,8 @@ export default function Punishments() {
|
|||
punishment.type === "WARNING"
|
||||
? "bg-yellow-50 border-yellow-400"
|
||||
: punishment.type === "TEMP_EXILE"
|
||||
? "bg-orange-100 border-orange-200"
|
||||
: "bg-red-50 border-red-200"
|
||||
? "bg-orange-100 border-orange-200"
|
||||
: "bg-red-50 border-red-200"
|
||||
}`}
|
||||
>
|
||||
<div className="flex items-center justify-between mb-2">
|
||||
|
|
@ -156,8 +156,8 @@ export default function Punishments() {
|
|||
punishment.type === "WARNING"
|
||||
? "bg-yellow-200 text-yellow-800 border-yellow-500"
|
||||
: punishment.type === "TEMP_EXILE"
|
||||
? "bg-orange-200 text-orange-800 border-orange-500"
|
||||
: "bg-red-200 text-red-800 border-red-500"
|
||||
? "bg-orange-200 text-orange-800 border-orange-500"
|
||||
: "bg-red-200 text-red-800 border-red-500"
|
||||
}`}
|
||||
>
|
||||
{punishment.type}
|
||||
|
|
@ -286,9 +286,7 @@ export default function Punishments() {
|
|||
<div key={index} className="bg-white border border-orange-200 rounded-md p-3 flex items-center justify-between">
|
||||
<div className="flex-1">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="bg-orange-200 text-orange-800 border border-orange-400 px-2 py-1 rounded text-xs font-semibold">
|
||||
ID: {mii.id}
|
||||
</span>
|
||||
<span className="bg-orange-200 text-orange-800 border border-orange-400 px-2 py-1 rounded text-xs font-semibold">ID: {mii.id}</span>
|
||||
<span className="text-sm text-gray-500">{mii.reason}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue