Compare commits

...

2 Commits

Author SHA1 Message Date
victorAnumudu e113f40c5c btn name changed based on job owner status 2023-09-27 14:13:04 +01:00
ameye 3fb996887b Merge branch 'send-to-group' of WrenchBoard/Users-Wrench into master 2023-09-27 07:52:15 +00:00
5 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ export default function Home(props) {
useEffect(() => { useEffect(() => {
getMyActiveJobList(); getMyActiveJobList();
}, []); }, []);
console.log('MyActiveJobList',MyActiveJobList)
return ( return (
<Layout> <Layout>
<div className="home-page-wrapper"> <div className="home-page-wrapper">
@@ -405,6 +405,7 @@ function ActiveJobs(props) {
name="message" name="message"
onChange={handleMessageChange} onChange={handleMessageChange}
value={messageToSend} value={messageToSend}
autoFocus
/> />
) : ( ) : (
<div className="p-4 w-full h-[300px] text-base text-slate-600 border border-slate-300"> <div className="p-4 w-full h-[300px] text-base text-slate-600 border border-slate-300">
@@ -113,9 +113,9 @@ export default function MyActiveJobTable({ MyJobList, className }) {
state: { ...value, pathname }, state: { ...value, pathname },
}); });
}} }}
className="w-20 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white" className="px-4 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white"
> >
View {value.owner_status == 'OWNER' ? 'Manage' : 'Send Updates'}
</button> </button>
</div> </div>
</td> </td>
@@ -18,7 +18,7 @@ export default function MyPendingJobTable({ MyJobList, className }) {
indexOfFirstItem, indexOfFirstItem,
indexOfLastItem indexOfLastItem
); );
const handlePagination = (e) => { const handlePagination = (e) => {
handlePagingFunc(e, setCurrentPage); handlePagingFunc(e, setCurrentPage);
}; };
@@ -103,9 +103,9 @@ export default function MyPendingJobTable({ MyJobList, className }) {
onClick={() => { onClick={() => {
setJobPopout({ show: true, data: value }); setJobPopout({ show: true, data: value });
}} }}
className="w-20 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white" className="px-4 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white"
> >
View {value.owner_status == 'OWNER' ? 'Manage' : 'Send Updates'}
</button> </button>
</td> </td>
</tr> </tr>
+2 -2
View File
@@ -128,9 +128,9 @@ export default function MyJobTable({ className, ActiveJobList, Account }) {
state: { ...task, pathname }, state: { ...task, pathname },
}); });
}} }}
className="w-20 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white" className="px-4 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white"
> >
Manage {task.owner_status == 'OWNER' ? 'Manage' : 'Send Updates'}
</button> </button>
</div> </div>
</div> </div>