|
| 1 | +import { Button } from "flowbite-react"; |
1 | 2 | import React from "react"; |
2 | 3 |
|
3 | 4 | const RecentVerifications = () => { |
@@ -50,109 +51,54 @@ const RecentVerifications = () => { |
50 | 51 | console.log(showModal); |
51 | 52 |
|
52 | 53 | return ( |
53 | | - <div> |
54 | | - <div className="relative overflow-x-auto"> |
55 | | - <table className="w-full text-sm text-left text-gray-500 dark:text-gray-400"> |
56 | | - <thead className="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400"> |
57 | | - <tr> |
58 | | - <th scope="col" className="px-6 py-3"> |
59 | | - Birth Date |
60 | | - </th> |
61 | | - <th scope="col" className="px-6 py-3"> |
62 | | - Name |
63 | | - </th> |
64 | | - <th scope="col" className="px-6 py-3"> |
65 | | - Gender |
66 | | - </th> |
67 | | - <th scope="col" className="px-6 py-3"> |
68 | | - Email |
69 | | - </th> |
70 | | - <th scope="col" className="px-6 py-3"> |
71 | | - Aadhar |
72 | | - </th> |
73 | | - <th scope="col" className="px-6 py-3"> |
74 | | - Verified |
75 | | - </th> |
76 | | - <th scope="col" className="px-6 py-3"> |
77 | | - {/* Add Verified */} |
78 | | - </th> |
79 | | - </tr> |
80 | | - </thead> |
81 | | - <tbody> |
82 | | - {people.map((data) => { |
83 | | - return ( |
84 | | - <tr className="bg-white border-b dark:bg-gray-800 dark:border-gray-700"> |
85 | | - <td className="px-6 py-4">{data.birth}</td> |
86 | | - <td className="px-6 py-4">{data.name}</td> |
87 | | - <td className="px-6 py-4">{data.Gender}</td> |
88 | | - <td className="px-6 py-4">{data.Email}</td> |
89 | | - <td className="px-6 py-4">{data.Aadhar}</td> |
90 | | - <td className="px-6 py-4">{data.Verified}</td> |
91 | | - <button |
92 | | - disabled={data.Verified === "true" ? false : true} |
93 | | - onClick={() => setShowModal(true)} |
94 | | - className="mt-2 text-white bg-black hover:bg-gray-900 focus:outline-none focus:ring-4 focus:ring-gray-300 font-medium rounded-lg text-sm px-5 py-2.5 mr-2 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-700 dark:border-gray-700" |
95 | | - > |
96 | | - Add+ |
97 | | - </button> |
98 | | - {showModal === true && ( |
99 | | - <> |
100 | | - <div className="fixed top-0 left-0 right-0 z-50 w-full p-4 md:inset-0 h-[calc(100%-1rem)] md:h-full"> |
101 | | - <div className="relative w-full h-full max-w-2xl md:h-auto"> |
102 | | - <div className="relative bg-white rounded-lg shadow dark:bg-gray-700"> |
103 | | - <div className="flex items-start justify-between p-4 border-b rounded-t dark:border-gray-600"> |
104 | | - <h3 className="text-xl font-semibold text-gray-900 dark:text-white"> |
105 | | - Note this message |
106 | | - </h3> |
107 | | - <button |
108 | | - className="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white" |
109 | | - onClick={() => { |
110 | | - setShowModal(false); |
111 | | - }} |
112 | | - > |
113 | | - <svg |
114 | | - aria-hidden="true" |
115 | | - className="w-5 h-5" |
116 | | - fill="currentColor" |
117 | | - viewBox="0 0 20 20" |
118 | | - xmlns="http://www.w3.org/2000/svg" |
119 | | - > |
120 | | - <path |
121 | | - fill-rule="evenodd" |
122 | | - d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" |
123 | | - clip-rule="evenodd" |
124 | | - ></path> |
125 | | - </svg> |
126 | | - </button> |
127 | | - </div> |
128 | | - <div className="p-6 space-y-6"> |
129 | | - <p className="text-base leading-relaxed text-gray-500 dark:text-gray-400"> |
130 | | - With less than a month to go before the European |
131 | | - Union enacts new consumer privacy laws for its |
132 | | - citizens, companies around the world are |
133 | | - updating their terms of service agreements to |
134 | | - comply. |
135 | | - </p> |
136 | | - <p className="text-base leading-relaxed text-gray-500 dark:text-gray-400"> |
137 | | - The European Union’s General Data Protection |
138 | | - Regulation (G.D.P.R.) goes into effect on May 25 |
139 | | - and is meant to ensure a common set of data |
140 | | - rights in the European Union. It requires |
141 | | - organizations to notify users as soon as |
142 | | - possible of high-risk data breaches that could |
143 | | - personally affect them. |
144 | | - </p> |
145 | | - </div> |
146 | | - </div> |
147 | | - </div> |
148 | | - </div> |
149 | | - </> |
150 | | - )} |
151 | | - </tr> |
152 | | - ); |
153 | | - })} |
154 | | - </tbody> |
155 | | - </table> |
| 54 | + <div className='relative w-[70%] dark:text-white dark:bg-dark2 text-dark3'> |
| 55 | + <div className='flex flex-row items-center text-[26px] font-medium h-[70px] pl-[40px] border-b-[1px] dark:border-[#232830] border-[#DCE3EE]'> |
| 56 | + Recently Verified Employees |
| 57 | + </div> |
| 58 | + |
| 59 | + <div className="flex flex-col w-[95%] mx-auto border-[1px] dark:border-[#232830] border-[#DCE3EE] border-collapse mt-[35px] rounded-t-[5px] cursor-pointer"> |
| 60 | + <div className="flex flex-row justify-between bg-[#F6F9FC] dark:bg-[#1F232D] border-b-[1px] border-[#DCE3EE] dark:border-[#232830] rounded-t-[5px] text-[14px] font-medium"> |
| 61 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[12px] border-r-[1px] dark:border-[#232830]">Name</div> |
| 62 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[12px] border-r-[1px] dark:border-[#232830]">Gender</div> |
| 63 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[12px] border-r-[1px] dark:border-[#232830]">DOB</div> |
| 64 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[12px] border-r-[1px] dark:border-[#232830]">Aadhaar</div> |
| 65 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[12px] border-r-[1px] dark:border-[#232830]">Pan card</div> |
| 66 | + <div className="flex flex-row justify-center items-center w-[20%] box-border py-[12px] border-r-[1px] dark:border-[#232830]">Verification Status</div> |
| 67 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[12px]">Option</div> |
| 68 | + </div> |
| 69 | + |
| 70 | + {people.map((p) => { |
| 71 | + return ( |
| 72 | + <div className="flex flex-row justify-between text-[14px]"> |
| 73 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[10px] border-r-[1px] dark:border-[#232830]">{p.name}</div> |
| 74 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[10px] border-r-[1px] dark:border-[#232830]">{p.Gender}</div> |
| 75 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[10px] border-r-[1px] dark:border-[#232830]">{p.birth}</div> |
| 76 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[10px] border-r-[1px] dark:border-[#232830]">{p.Aadhar}</div> |
| 77 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[10px] border-r-[1px] dark:border-[#232830]">-</div> |
| 78 | + <div className="flex flex-row justify-center items-center w-[20%] box-border py-[10px] border-r-[1px] dark:border-[#232830]"> |
| 79 | + {p.Verified == 'true' ? <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="green" className="w-6 h-6"> |
| 80 | + <path strokeLinecap="round" strokeLinejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 01-1.043 3.296 3.745 3.745 0 01-3.296 1.043A3.745 3.745 0 0112 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 01-3.296-1.043 3.745 3.745 0 01-1.043-3.296A3.745 3.745 0 013 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 011.043-3.296 3.746 3.746 0 013.296-1.043A3.746 3.746 0 0112 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 013.296 1.043 3.746 3.746 0 011.043 3.296A3.745 3.745 0 0121 12z" /> |
| 81 | + </svg> |
| 82 | + : |
| 83 | + <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="red" className="w-6 h-6"> |
| 84 | + <path strokeLinecap="round" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" /> |
| 85 | + </svg> |
| 86 | + } |
| 87 | + </div> |
| 88 | + <div className="flex flex-row justify-center items-center w-[15%] box-border py-[10px] border-r-[1px] dark:border-[#232830]"> |
| 89 | + {p.Verified == 'true' ? |
| 90 | + <Button className="py-[-2px]">Hire |
| 91 | + <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" className="w-4 h-4 ml-[5px]"> |
| 92 | + <path strokeLinecap="round" strokeLinejoin="round" d="M12 4.5v15m7.5-7.5h-15" /> |
| 93 | + </svg> |
| 94 | + </Button> |
| 95 | + : |
| 96 | + <>-</> |
| 97 | + } |
| 98 | + </div> |
| 99 | + </div> |
| 100 | + ) |
| 101 | + })} |
156 | 102 | </div> |
157 | 103 | </div> |
158 | 104 | ); |
|
0 commit comments