Can mark a comment as the answer, some layout changes

This commit is contained in:
jackiettran
2025-11-11 18:23:11 -05:00
parent 825389228d
commit b045fbeb01
11 changed files with 379 additions and 323 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
interface PostStatusBadgeProps {
status: "open" | "solved" | "closed";
status: "open" | "answered" | "closed";
}
const PostStatusBadge: React.FC<PostStatusBadgeProps> = ({ status }) => {
@@ -9,8 +9,8 @@ const PostStatusBadge: React.FC<PostStatusBadgeProps> = ({ status }) => {
switch (stat) {
case 'open':
return { label: 'Open', color: 'success', icon: 'bi-circle' };
case 'solved':
return { label: 'Solved', color: 'info', icon: 'bi-check-circle' };
case 'answered':
return { label: 'Answered', color: 'info', icon: 'bi-check-circle' };
case 'closed':
return { label: 'Closed', color: 'secondary', icon: 'bi-x-circle' };
default: