mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-09 21:45:17 +00:00
refactor: extract badgeStateColor function for reuse across log components
This commit is contained in:
@@ -31,7 +31,7 @@ export const DockerLogs = dynamic(
|
||||
},
|
||||
);
|
||||
|
||||
const badgeStateColor = (state: string) => {
|
||||
export const badgeStateColor = (state: string) => {
|
||||
switch (state) {
|
||||
case "running":
|
||||
return "green";
|
||||
|
||||
Reference in New Issue
Block a user