|
1 | | -import React, { useEffect, useRef } from "react"; |
| 1 | +import { useEffect, useRef } from "react"; |
2 | 2 | import { observer } from "mobx-react"; |
3 | 3 | import { useForm } from "react-hook-form"; |
4 | 4 | import type { EditorRefApi } from "@plane/editor"; |
@@ -111,40 +111,26 @@ export const CommentCardEditForm = observer(function CommentCardEditForm(props: |
111 | 111 | onClick={handleSubmit(onEnter)} |
112 | 112 | disabled={isDisabled} |
113 | 113 | className={cn( |
114 | | - "group rounded-lg border size-7 flex items-center justify-center shadow-md duration-300", |
115 | | - isDisabled |
116 | | - ? "cursor-not-allowed border-success-strong/50 bg-success-primary" |
117 | | - : "border-success-strong bg-success-primary hover:bg-green-500" |
| 114 | + "group rounded-lg border border-success-subtle size-7 grid place-items-center shadow-raised-100 bg-success-subtle duration-300", |
| 115 | + isDisabled ? "" : "hover:bg-success-subtle-1" |
118 | 116 | )} |
119 | 117 | > |
120 | | - <CheckIcon |
121 | | - className={cn( |
122 | | - "size-4 duration-300", |
123 | | - isDisabled ? "text-success-primary/50" : "text-success-primary group-hover:text-on-color" |
124 | | - )} |
125 | | - /> |
| 118 | + <CheckIcon className="size-4 text-success-primary" /> |
126 | 119 | </button> |
127 | 120 | )} |
128 | 121 | <button |
129 | 122 | type="button" |
130 | 123 | disabled={isSubmitting} |
131 | 124 | className={cn( |
132 | | - "group rounded-lg border size-7 flex items-center justify-center shadow-md duration-300", |
133 | | - isSubmitting |
134 | | - ? "cursor-not-allowed border-danger-strong/50 bg-danger-primary" |
135 | | - : "border-danger-strong bg-danger-primary hover:bg-red-500" |
| 125 | + "group rounded-lg border border-danger-subtle size-7 grid place-items-center shadow-raised-100 bg-danger-subtle duration-300", |
| 126 | + isSubmitting ? "" : "hover:bg-danger-subtle-hover" |
136 | 127 | )} |
137 | 128 | onClick={() => { |
138 | 129 | setIsEditing(false); |
139 | 130 | editorRef.current?.setEditorValue(comment.comment_html ?? "<p></p>"); |
140 | 131 | }} |
141 | 132 | > |
142 | | - <CloseIcon |
143 | | - className={cn( |
144 | | - "size-5 duration-300", |
145 | | - isSubmitting ? "text-danger-primary/50" : "text-danger-primary group-hover:text-on-color" |
146 | | - )} |
147 | | - /> |
| 133 | + <CloseIcon className="size-4 text-danger-primary" /> |
148 | 134 | </button> |
149 | 135 | </div> |
150 | 136 | </form> |
|
0 commit comments