generated from nhcarrigan/template
feat: display primary badge in comments
Extend the primary badge selection feature to comments, so users see only their selected badge next to their comments (or all badges if none selected). Changes: - Add primaryBadge field to CommentUser interface - Update comment service mapComment to include primaryBadge - Update comment-display component to show primary badge logic - Import and expose PrimaryBadge enum in comment-display component - Use same conditional logic as profile (show primary or all badges)
This commit is contained in:
@@ -4,14 +4,17 @@
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { PrimaryBadge } from "./auth.types";
|
||||
|
||||
interface CommentUser {
|
||||
id: string;
|
||||
username: string;
|
||||
avatar?: string;
|
||||
inDiscord?: boolean;
|
||||
isVip?: boolean;
|
||||
isMod?: boolean;
|
||||
isStaff?: boolean;
|
||||
id: string;
|
||||
username: string;
|
||||
avatar?: string;
|
||||
primaryBadge?: PrimaryBadge;
|
||||
inDiscord?: boolean;
|
||||
isVip?: boolean;
|
||||
isMod?: boolean;
|
||||
isStaff?: boolean;
|
||||
}
|
||||
|
||||
interface Comment {
|
||||
|
||||
Reference in New Issue
Block a user