forked from ashokitschool/maven-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuploaded
124 lines (114 loc) · 4.33 KB
/
uploaded
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import React from "react";
import { useAppContext } from "../../context/index.jsx";
export default function Uploaded() {
const { files, setFiles } = useAppContext();
let client = "Rani Ltd ";
let time = "500s";
return (
<div className="flex justify-between min-h-screen">
<div className="mx-auto items-center justify-center w-1/2 ">
<div className="flex items-center justify-center py-10">
<strong>Client Name: {client}</strong>
</div>
<div className="justify-center items-center mx-20 w-auto">
<h3>Selected Files:</h3>
<div className="border-yellow-400 border-2 rounded-md w-min-[50px] mx-auto flex flex-col grow">
<table className="grow">
<thead className="">
<tr>
<th className="border-2 border-yellow-300">No</th>
<th className="border-2 border-yellow-300">FileName</th>
</tr>
</thead>
<tbody>
{Array.from(files).map((file, index) => (
<tr key={index}>
<td className="border-2 border-yellow-300">{index}</td>
<td className="border-2 border-yellow-300">{file.name}</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
</div>
<div className="mx-auto w-1/2 items-center justify-center ">
<div className="flex justify-center items-center">
<button
disabled
className="bg-green-400 w-[200px] h-10 flex rounded-full items-center justify-center"
>
Process Invoices
</button>
</div>
<div className="flex justify-center items-center">
Total No of Invoices: {files.length}
</div>
<div className=" py-[30px] flex flex-col justify-center items-center">
<p>
Please wait. Your invoices are being processed.
<br />
You may refresh the page or navigate to a different client.
<br />
Your files will appear here once processed.
</p>
</div>
<div className="p-[5px] m-auto flex items-center justify-center">
<p className="bg-yellow-500 w-1/2 flex items-center justify-center">
Estimated Time-{time}
</p>
</div>
</div>
</div>
);
}
/*
<div className="w-1/2 flex flex-col items-center justify-center ">
<div className="flex justify-center items-center">
<button disabled className="bg-green-400 w-[200px] h-10 flex rounded-full items-center justify-center">
In Process
</button>
</div>
<div className="flex justify-center items-center">
Total No of Invoices: {files.length}
</div>
<div className=" py-[30px] flex flex-col justify-center items-center">
<p>
Please wait. Your invoices are being processed.
<br/>
You may refresh the page or navigate to a different client.
<br/>
Your files will appear here once processed.
</p>
</div>
<div className="bg-yellow-500 w-1/2 flex justify-center items-center">
</div>
<div className="min-h-screen flex items-center justify-center">
<div className="w-1/2 flex items-center justify-center">
<table className="">
<thead className="">
<tr>
<th className="border-2 border-yellow-300">No</th>
<th className="border-2 border-yellow-300">FileName</th>
<th className="border-2 border-yellow-300">Action</th>
</tr>
</thead>
<tbody>
{Array.from(files).map((file, index) => (
<tr key={index}>
<td className="border-2 border-yellow-300">{index}</td>
<td className="border-2 border-yellow-300">{file.name}</td>
<td className="border-2 border-yellow-300">
<button onClick={() => handleDelete(file)}>Delete</button>
</td>
</tr>
))}
</tbody>
</table>
</div>
<div className="m-auto w-1/2 flex items-center justify-center">
<p className="bg-green-400 w-[200px] rounded-full ">In Process</p>
</div>
</div>
);
} */