Refactor admin actions and improve code formatting: Standardize import statements, enhance error handling messages, and apply consistent formatting across event, user, and preference management functions for better readability and maintainability.
Some checks failed
Deploy with Docker Compose / deploy (push) Has been cancelled
Some checks failed
Deploy with Docker Compose / deploy (push) Has been cancelled
This commit is contained in:
@@ -30,7 +30,8 @@ export default function Badge({
|
||||
}: BadgeProps) {
|
||||
const variantStyles = {
|
||||
default: {
|
||||
backgroundColor: "color-mix(in srgb, var(--accent-color) 20%, transparent)",
|
||||
backgroundColor:
|
||||
"color-mix(in srgb, var(--accent-color) 20%, transparent)",
|
||||
borderColor: "color-mix(in srgb, var(--accent-color) 50%, transparent)",
|
||||
color: "var(--accent-color)",
|
||||
},
|
||||
@@ -45,7 +46,8 @@ export default function Badge({
|
||||
color: "var(--yellow)",
|
||||
},
|
||||
danger: {
|
||||
backgroundColor: "color-mix(in srgb, var(--destructive) 20%, transparent)",
|
||||
backgroundColor:
|
||||
"color-mix(in srgb, var(--destructive) 20%, transparent)",
|
||||
borderColor: "color-mix(in srgb, var(--destructive) 50%, transparent)",
|
||||
color: "var(--destructive)",
|
||||
},
|
||||
@@ -66,4 +68,3 @@ export default function Badge({
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user