From af769a47aa6144aab6aa8aa524604795245147de Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 18 Apr 2025 15:57:13 +0000 Subject: [PATCH] red bnuttons --- .gitignore | 5 +++++ frontend/json/runtimeError.json | 1 + frontend/src/colors.ts | 2 ++ frontend/src/pages/tasks/tasks-list.tsx | 8 ++++---- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 frontend/json/runtimeError.json diff --git a/.gitignore b/.gitignore index e427ff3..d0eb167 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ node_modules/ */node_modules/ */build/ + +**/node_modules/ +**/build/ +.DS_Store +.env \ No newline at end of file diff --git a/frontend/json/runtimeError.json b/frontend/json/runtimeError.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/frontend/json/runtimeError.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/frontend/src/colors.ts b/frontend/src/colors.ts index 0fea7b8..1079a57 100644 --- a/frontend/src/colors.ts +++ b/frontend/src/colors.ts @@ -46,6 +46,8 @@ export const getButtonColor = ( hasHover: boolean, isActive = false, ) => { + if (color === 'red') { color = 'danger'; } + if (color === 'void') { return ''; } diff --git a/frontend/src/pages/tasks/tasks-list.tsx b/frontend/src/pages/tasks/tasks-list.tsx index e85130a..f0fb9ca 100644 --- a/frontend/src/pages/tasks/tasks-list.tsx +++ b/frontend/src/pages/tasks/tasks-list.tsx @@ -109,27 +109,27 @@ const TasksTablesPage = () => { )} {hasCreatePermission && ( setIsModalActive(true)} />