Commit 9f806d78 authored by Ramadevi Guduri's avatar Ramadevi Guduri

reports styles chage

parent dc3a068f
This diff is collapsed.
...@@ -9,6 +9,7 @@ import { base_url } from "../../utils/constants"; ...@@ -9,6 +9,7 @@ import { base_url } from "../../utils/constants";
import DownloadIcon from '../../assets/icons/downloadIcon'; import DownloadIcon from '../../assets/icons/downloadIcon';
import jsPDF from 'jspdf'; import jsPDF from 'jspdf';
import 'jspdf-autotable'; import 'jspdf-autotable';
import {styles} from './styles';
function Exporttable() { function Exporttable() {
const dispatch = useDispatch(); const dispatch = useDispatch();
...@@ -185,30 +186,31 @@ function Exporttable() { ...@@ -185,30 +186,31 @@ function Exporttable() {
return ( return (
<div> <div>
<div className={` overflow-auto sm:rounded-lg p-4 bg-[#E9EDEE]`}> <div className={styles.genarateReportContainer}>
<div className="text-blue-800 py-3 pl-2 text-center"> <div className={styles.textBlueHeading}>
{" "}
Genarate Report GENARATE REPORT
</div> </div>
<div> <div>
<form className=" p-2 text-[12px]"> <form className={styles.formContainer}>
<div className="flex items-center justify-evenly "> <div className={styles.flexContainer}>
<div className="flex items-center"> <div className={styles.flexItemsCenter}>
<label htmlFor="countries" className="font-semibold"> <label htmlFor="countries" className="font-semibold">
Select Employee:{" "} SELECT EMPLOYEE:{" "}
</label> </label>
<select <select
onChange={(e) => setSelectedEmployee(e.target.value)} onChange={(e) => setSelectedEmployee(e.target.value)}
value={selectedEmployee} value={selectedEmployee}
className="bg-gray-50 ml-2 w-[200px] border border-gray-300 text-gray-900 text-sm rounded-sm focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700" className={styles.selectEmployeeDropdown}
> >
<option id="" value=""> <option id="" value="">
Select Select
</option> </option>
{reportees && {reportees &&
reportees.map((reportee) => ( reportees.map((reportee) => (
<option <option className="text-pretty"
key={reportee.empId} key={reportee.empId}
id={reportee.empId} id={reportee.empId}
value={reportee.empId} value={reportee.empId}
...@@ -220,26 +222,26 @@ function Exporttable() { ...@@ -220,26 +222,26 @@ function Exporttable() {
</div> </div>
<div className="flex items-center"> <div className="flex items-center">
<label htmlFor="countries" className="font-semibold"> <label htmlFor="countries" className="font-semibold">
Select Period: SELECT PERIOD:
</label> </label>
<select <select
onChange={handleDropdownChange} onChange={handleDropdownChange}
className="bg-gray-50 ml-2 w-[200px] border border-gray-300 text-gray-900 text-sm focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 " className={styles.selectEmployeeDropdown && styles.selectDropdown}
> >
<option id="" value=""> <option id="" value="">
Select Select
</option> </option>
<option id="" value="pastMonth"> <option id="" value="pastMonth">
Past 1 months Past 1 Months
</option> </option>
<option id="" value="pastthreeMonth"> <option id="" value="pastthreeMonth">
Past 3 months Past 3 Months
</option> </option>
<option id="" value="pastsixMonth"> <option id="" value="pastsixMonth">
Past 6 months Past 6 Months
</option> </option>
<option id="" value="pasttwelvemonth"> <option id="" value="pasttwelvemonth">
Past year Past Year
</option> </option>
</select> </select>
</div> </div>
...@@ -247,7 +249,7 @@ function Exporttable() { ...@@ -247,7 +249,7 @@ function Exporttable() {
<button <button
// disabled={!fromDate || !selectedEmployee || !toDate} // disabled={!fromDate || !selectedEmployee || !toDate}
disabled={disableBtn('view')} disabled={disableBtn('view')}
className="px-8 py-2 ml-5 w-[100px] h-[40px] bg-blue-500 text-white font-semibold rounded-md disabled:bg-gray-400" className={styles.downloadButton}
onClick={(e) => handleView(e)} onClick={(e) => handleView(e)}
> >
View View
...@@ -258,7 +260,7 @@ function Exporttable() { ...@@ -258,7 +260,7 @@ function Exporttable() {
//disabled={pdfLoading || !fromDate || !selectedEmployee || !toDate} //disabled={pdfLoading || !fromDate || !selectedEmployee || !toDate}
disabled={disableBtn()} disabled={disableBtn()}
type="button" type="button"
className="px-3 py-2 ml-5 min-w-[100px] disabled:bg-gray-400 h-[40px] bg-blue-500 font-semibold text-white rounded-md flex items-center justify-center" className={styles.downloadButton}
> >
<DownloadIcon /> <DownloadIcon />
<span>{pdfLoading ? "Downloading..." : "Download"}</span> <span>{pdfLoading ? "Downloading..." : "Download"}</span>
......
export const styles = {
genarateReportContainer: "overflow-auto sm:rounded-lg p-4 bg-[#E9EDEE] ",
textBlueHeading: "text-blue-800 py-3 pl-2 text-center fond-bold text-2xl",
formContainer: "p-2 text-[12px] mb-10",
flexContainer: "flex items-center justify-evenly",
flexItemsCenter: "flex items-center",
selectEmployeeDropdown:
"bg-gray-50 text-balance rounded-lg rounded-md ml-2 border border-gray-300 text-gray-900 text-sm focus:ring-blue-500 focus:border-blue-500 block p-2.5 ",
selectDropdown:"bg-gray-50 text-balance rounded-lg ml-2 border border-gray-300 text-gray-900 text-sm focus:ring-blue-500 focus:border-blue-500 block p-2.5 w-[235px]",
downloadButton:
"px-3 py-2 ml-5 min-w-[100px] disabled:bg-gray-400 h-[40px] bg-blue-500 font-semibold text-white rounded-md flex items-center justify-center",
Norecords: "text-center align-middle pt-14 pb-14 text-blue-500 font-bold",
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment