added file component to accept offer model

This commit was merged in pull request #712.
This commit is contained in:
victorAnumudu
2024-04-15 10:09:23 +01:00
parent cbfaf1e073
commit d6920b320c
6 changed files with 107 additions and 52 deletions
@@ -20,7 +20,7 @@ export default function ActiveJobMessage({ activeJobMesList }) {
return (
<div className='flex flex-col justify-between'>
<div className="w-full h-full min-h-[400px] max-h-[400px] overflow-y-auto">
<div className="w-full h-full min-h-[250px] max-h-[300px] overflow-y-auto">
<table className="wallet-activity w-full table-auto border-collapse text-left">
<thead className='border-b-2'>
<tr className='text-slate-600'>
@@ -13,6 +13,7 @@ import usersService from "../../services/UsersService";
import { PriceFormatter } from "../Helpers/PriceFormatter";
import { SocketValues } from "../Contexts/SocketIOContext";
import TabButton from "../customTabs/TabButton";
import AttachFile from "../attachmentCom/AttachFile";
function ActiveJobs(props) {
let {sendMessage, joinRoom} = SocketValues() // destructures 'SEND MESSAGE' and 'JOIN ROOM' FUNCTIONS FROM SOCKET
@@ -539,6 +540,12 @@ function ActiveJobs(props) {
{/* MESSAGE SECTION */}
<div className="w-full lg:w-1/2">
<div className="mb-4">
<AttachFile
data={props.details}
showOnData={true}
/>
</div>
<div className="flex justify-between items-center gap-5">
<p className="w-full text-lg font-bold text-dark-gray dark:text-white tracking-wide flex items-center gap-2 justify-between">
<span>Message</span>