change JobComment btn label - 'send' to 'Submit'
This commit is contained in:
parent
bd1a97716c
commit
09428b1ff1
@ -22,7 +22,8 @@ const Filelist = ({ files, removeFile, expenseToEdit, sm = 6, md = 4 }) => {
|
|||||||
style={{ minWidth: "30px" }}
|
style={{ minWidth: "30px" }}
|
||||||
></i>
|
></i>
|
||||||
|
|
||||||
<div className="d-flex flex-column text-truncate">
|
<Tooltip text={file.fileName} >
|
||||||
|
<div className="d-flex flex-column text-truncate">
|
||||||
<span className="fw-semibold small text-truncate">
|
<span className="fw-semibold small text-truncate">
|
||||||
{file.fileName}
|
{file.fileName}
|
||||||
</span>
|
</span>
|
||||||
@ -30,6 +31,7 @@ const Filelist = ({ files, removeFile, expenseToEdit, sm = 6, md = 4 }) => {
|
|||||||
{file.fileSize ? formatFileSize(file.fileSize) : ""}
|
{file.fileSize ? formatFileSize(file.fileSize) : ""}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Delete icon */}
|
{/* Delete icon */}
|
||||||
|
|||||||
@ -175,12 +175,9 @@ const JobList = ({ isArchive }) => {
|
|||||||
<td
|
<td
|
||||||
key={col.key}
|
key={col.key}
|
||||||
className={col.className}
|
className={col.className}
|
||||||
// onClick={() =>
|
|
||||||
// setSelectedJob({ showCanvas: true, job: row?.id })
|
|
||||||
// }
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (!isArchive) {
|
if (!isArchive) {
|
||||||
setSelectedJob({ showCanvas: true, job: e?.id });
|
setSelectedJob({ showCanvas: true, job: row?.id });
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|||||||
@ -150,7 +150,7 @@ const JobComments = ({ data }) => {
|
|||||||
type="submit"
|
type="submit"
|
||||||
disabled={!watch("comment")?.trim() || isPending}
|
disabled={!watch("comment")?.trim() || isPending}
|
||||||
>
|
>
|
||||||
Send
|
Submit
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -457,6 +457,7 @@ export const SelectFieldSearch = ({
|
|||||||
const handleSelect = (option) => {
|
const handleSelect = (option) => {
|
||||||
if (!isMultiple) {
|
if (!isMultiple) {
|
||||||
onChange(isFullObject ? option : option[valueKey]);
|
onChange(isFullObject ? option : option[valueKey]);
|
||||||
|
setOpen(false)
|
||||||
} else {
|
} else {
|
||||||
const exists = selectedList.some((e) => e[valueKey] === option[valueKey]);
|
const exists = selectedList.some((e) => e[valueKey] === option[valueKey]);
|
||||||
const updated = exists
|
const updated = exists
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user