-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevansh-3
More file actions
652 lines (604 loc) · 27.8 KB
/
Copy pathdevansh-3
File metadata and controls
652 lines (604 loc) · 27.8 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { ErrorComponent } from '../../utils/Error';
import Slide from '@mui/material/Slide';
import Tooltip from '@mui/material/Tooltip';
import { getCommonFunctions } from '../../serviceRevamp/add/ci_flow/SourceDetails';
import FileUpload, { FileUploadDefaultState } from '../../../components/genericComponents/Forms/FileUpload';
import Button from '../../../components/genericComponents/Button';
import InvokeApi, { PostData } from '../../../util/apiInvoker';
import properties from '../../../properties/properties';
import GenerateURL from '../../../util/APIUrlProvider';
import { useNavigate } from 'react-router-dom';
import { useCustomSnackbar } from '../../../contexts/SnackbarContext';
import { showErrorHandlerUpdated } from '../../../util/util';
import { useDocumentTitle } from '../../../hooks/useDocumentTitle';
import GenericSkeleton from '../../../components/genericComponents/Skeletons/GenericSkeleton';
import PageHeader from '../../../components/PageHeader';
import NewChip from '../../../components/newChip/NewChip';
import { Link } from 'react-router-dom';
const Transition = React.forwardRef(function Transition(props, ref) {
return <Slide direction="up" ref={ref} {...props} />;
})
const GRID_COLS = '18% 14% 10% 10% 10% 16% 14% 12%';
const TABLE_COLUMNS = [
{ label: 'Uploaded Via', key: 'user' },
{ label: 'Uploaded', key: 'uploaded' },
{ label: 'Users', key: 'users' },
{ label: 'Imported', key: 'imported' },
{ label: 'Failed', key: 'failed' },
{ label: 'File Upload Status', key: 'status' },
{ label: 'File', key: 'file' },
];
const tableStyles = {
card: {
border: '1px solid var(--color-badge-grey-bg)',
borderRadius: 'var(--radius-8)',
overflow: 'hidden',
},
header: {
display: 'grid',
gridTemplateColumns: GRID_COLS,
alignItems: 'center',
padding: 'var(--space-12) var(--space-16)',
background: 'var(--color-grey-100)',
borderBottom: '1px solid var(--color-badge-grey-bg)',
gap: 'var(--space-16)',
},
headerLabel: {
fontWeight: 'var(--font-weight-600)',
fontSize: 'var(--font-12)',
fontFamily: 'Montserrat, sans-serif',
color: 'var(--color-content-primary)',
whiteSpace: 'nowrap',
},
row: {
display: 'grid',
gridTemplateColumns: GRID_COLS,
alignItems: 'center',
padding: 'var(--space-14) var(--space-16)',
borderBottom: '1px solid var(--color-badge-grey-bg)',
gap: 'var(--space-16)',
backgroundColor: 'var(--color-white)',
},
cellText: {
fontSize: 'var(--font-12)',
color: 'var(--color-content-primary)',
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
},
cellSecondary: {
fontSize: 'var(--font-12)',
color: 'var(--color-grey-600)',
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
},
};
// ─── Helpers ─────────────────────────────────────────────────────────────────
/**
* Returns a relative time string like "4 days ago", "2 hours ago", etc.
*/
function getRelativeTime(isoString) {
if (!isoString) return '—';
const now = new Date();
const past = new Date(isoString);
const diffMs = now - past;
const diffSec = Math.floor(diffMs / 1000);
const diffMin = Math.floor(diffSec / 60);
const diffHr = Math.floor(diffMin / 60);
const diffDay = Math.floor(diffHr / 24);
const diffWk = Math.floor(diffDay / 7);
const diffMo = Math.floor(diffDay / 30);
const diffYr = Math.floor(diffDay / 365);
if (diffSec < 60) return 'just now';
if (diffMin < 60) return `${diffMin} minute${diffMin !== 1 ? 's' : ''} ago`;
if (diffHr < 24) return `${diffHr} hour${diffHr !== 1 ? 's' : ''} ago`;
if (diffDay < 7) return `${diffDay} day${diffDay !== 1 ? 's' : ''} ago`;
if (diffWk < 5) return `${diffWk} week${diffWk !== 1 ? 's' : ''} ago`;
if (diffMo < 12) return `${diffMo} month${diffMo !== 1 ? 's' : ''} ago`;
return `${diffYr} year${diffYr !== 1 ? 's' : ''} ago`;
}
/**
* Formats an ISO string to a readable absolute date+time for the tooltip.
*/
function formatAbsolute(isoString) {
if (!isoString) return '';
const d = new Date(isoString);
const date = d.toLocaleDateString('en-IN', { day: '2-digit', month: 'short', year: 'numeric' });
const time = d.toLocaleTimeString('en-IN', { hour: '2-digit', minute: '2-digit', hour12: true });
return `${date}, ${time}`;
}
/**
* Parses the description string to extract Users, Imported, Failed counts.
* Falls back to 0 for any field not found.
*
* Expected format examples:
* "Users: 10 Imported: 8 Failed: 2 User imported Successfully"
* "Error in creating policy and user group"
*/
function parseDescriptionCounts(description) {
const str = description || '';
const extract = (key) => {
const match = str.match(new RegExp(`${key}\\s*:\\s*(\\d+)`, 'i'));
return match ? parseInt(match[1], 10) : 0;
};
return {
users: extract('Users'),
imported: extract('Imported'),
failed: extract('Failed'),
};
}
function StatusChip({ status }) {
const s = (status || '').toUpperCase();
if (s === 'SUCCESS') return <NewChip className='font-12' label="Success" shape="standard" size="md" variant="success" />;
if (s === 'FAILED') return <NewChip className='font-12' label="Failed" shape="standard" size="md" variant="error" />;
if (s === 'RUNNING') return <NewChip className='font-12' label="Running" shape="standard" size="md" variant="warning" />;
return <NewChip label={status || '—'} className='font-12' shape="standard" size="md" variant="default" />;
}
// ─── Skeleton ─────────────────────────────────────────────────────────────────
function UploadUsersTableSkeleton() {
return (
<div>
<div style={tableStyles.header}>
{TABLE_COLUMNS.map((col) => (
<GenericSkeleton
key={col.key}
variant="text"
width="80px"
height="13px"
style={{ borderRadius: 'var(--radius-4)' }}
/>
))}
</div>
{Array.from({ length: 8 }).map((_, i) => (
<div key={i} style={tableStyles.row}>
{/* User */}
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<GenericSkeleton variant="circle" width="28px" height="28px" rootStyle={{ flex: '0 0 28px' }} />
<GenericSkeleton variant="text" width="70px" height="13px" style={{ borderRadius: 'var(--radius-4)' }} />
</div>
{/* Uploaded */}
<GenericSkeleton variant="text" width="80px" height="13px" style={{ borderRadius: 'var(--radius-4)' }} />
{/* Users */}
<GenericSkeleton variant="text" width="30px" height="13px" style={{ borderRadius: 'var(--radius-4)' }} />
{/* Imported */}
<GenericSkeleton variant="text" width="30px" height="13px" style={{ borderRadius: 'var(--radius-4)' }} />
{/* Failed */}
<GenericSkeleton variant="text" width="30px" height="13px" style={{ borderRadius: 'var(--radius-4)' }} />
{/* Status */}
<GenericSkeleton variant="rect" width="64px" height="24px" style={{ borderRadius: 'var(--radius-20)' }} />
{/* File */}
<GenericSkeleton variant="text" width="90px" height="13px" style={{ borderRadius: 'var(--radius-4)' }} />
</div>
))}
</div>
);
}
// ─── Count Badge ──────────────────────────────────────────────────────────────
function CountBadge({ label, value, colorVar }) {
return (
<div style={{
display: 'inline-flex',
flexDirection: 'column',
alignItems: 'center',
padding: '2px 8px',
borderRadius: 'var(--radius-6)',
background: 'var(--color-grey-100)',
minWidth: 44,
}}>
<span style={{
fontSize: 'var(--font-11)',
fontWeight: 'var(--font-weight-700)',
color: colorVar || 'var(--color-content-primary)',
lineHeight: 1.4,
}}>
{value}
</span>
<span style={{
fontSize: 'var(--font-10)',
color: 'var(--color-grey-600)',
lineHeight: 1.2,
whiteSpace: 'nowrap',
}}>
{label}
</span>
</div>
);
}
// ─── Table row ────────────────────────────────────────────────────────────────
function ActivityTableRow({ item }) {
const uploadedBy = item?.user || '—';
const description = item?.description || '—';
const createdAt = item?.created_at;
const counts = parseDescriptionCounts(item?.description);
const activityToken = item?.activity_token;
const fileName = item?.entity_detail?.file?.name || null;
const initials = uploadedBy
.split(' ')
.slice(0, 2)
.map((w) => w[0]?.toUpperCase() || '')
.join('');
const relativeTime = getRelativeTime(createdAt);
const absoluteTime = formatAbsolute(createdAt);
return (
<div style={tableStyles.row}>
{/* User */}
<div style={{ display: 'flex', alignItems: 'center', gap: 'var(--space-8)', overflow: 'hidden' }}>
<div
style={{
flexShrink: 0,
width: 28,
height: 28,
borderRadius: '50%',
background: 'var(--color-primary-100, #e8f0fe)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
fontSize: 'var(--font-10)',
fontWeight: 'var(--font-weight-700)',
color: 'var(--color-primary-500)',
}}
>
{initials}
</div>
<Tooltip title={uploadedBy} placement="top" arrow>
<span style={tableStyles.cellText}>{uploadedBy}</span>
</Tooltip>
</div>
{/* Uploaded (relative time) */}
<Tooltip title={absoluteTime} placement="top" arrow>
<div style={{ ...tableStyles.cellText, cursor: 'default' }}>
{relativeTime}
</div>
</Tooltip>
{/* Users — separate column */}
<div style={tableStyles.cellText}>
{counts.users}
</div>
{/* Imported — separate column */}
<div style={{ fontSize: 'var(--font-12)', color: 'var(--color-success-500, #16a34a)', fontWeight: 'var(--font-weight-600)' }}>
{counts.imported}
</div>
{/* Failed — separate column */}
<div style={{
fontSize: 'var(--font-12)',
color: counts.failed > 0 ? 'var(--color-danger-500, #dc2626)' : 'var(--color-content-primary)',
fontWeight: 'var(--font-weight-600)',
}}>
{counts.failed}
</div>
{/* File Upload Status */}
<div>
<StatusChip status={item?.status} />
</div>
{/* File — last column */}
<div style={{ overflow: 'hidden' }}>
{activityToken ? (
<Link
to={`/logs?global_task_id=${activityToken}`}
target="_blank"
style={{
fontSize: 'var(--font-12)',
color: 'var(--color-primary-500)',
whiteSpace: 'nowrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
display: 'inline-flex',
alignItems: 'center',
gap: 'var(--space-4)',
textDecoration: 'underline',
cursor: 'pointer',
fontWeight: 'var(--font-weight-500)',
}}
>
<span className="ri-external-link-line" style={{ fontSize: 'var(--font-12)', flexShrink: 0 }} />
{fileName || 'View Logs'}
</Link>
) : (
<Tooltip title={fileName || '—'} placement="top" arrow>
<span style={tableStyles.cellText}>{fileName || '—'}</span>
</Tooltip>
)}
</div>
</div>
);
}
// ─── Main component ───────────────────────────────────────────────────────────
const UploadUsers = (props) => {
const inherits = props.inherits ? props.inherits : {}
const { showSnackbar } = useCustomSnackbar();
const [state, setState] = useState({
fileUpload: null,
show_upload_tab: false,
file_not_selected: false,
child_inherits: {
fileUpload: {
"validateForm": () => { return { valid: true } },
"getState": () => { return {} },
"getData": () => { return {} }
}
},
errorInUpload: null,
})
const commonFunctions = getCommonFunctions(state, setState, inherits)
useDocumentTitle("Upload Bulk User Sheet")
const navigate = useNavigate();
useEffect(() => {
fetchRecentUploadedFile();
}, [])
useEffect(() => {
if (state.show_upload_tab) {
setState((prev_state) => ({
...prev_state,
fileUpload: { files: [] }
}))
}
}, [state.show_upload_tab])
function getFileUploadState() {
var state_temp = FileUploadDefaultState();
if (state.fileUpload) {
state.fileUpload.files.forEach(file_name => {
if (typeof (file_name) == "string") {
state_temp.form_data.data.files.push({ name: file_name });
} else {
state_temp.form_data.data.files.push(file_name);
}
});
}
return state_temp;
}
function ValidateAndUploadSheet() {
var children_vaidation_result = inherits.validateForm ? inherits.validateForm() : { valid: true }
var child_states = inherits.getState ? inherits.getState() : null;
var fileupload_data = child_states.fileUpload && child_states.fileUpload.files ? child_states.fileUpload.files : null;
if (children_vaidation_result.valid) {
if (fileupload_data.length > 0) {
var final_obj = {
...final_obj,
content: fileupload_data[0].content,
name: fileupload_data[0].name
}
var final_arr = [final_obj];
var post_url = GenerateURL({}, properties.api.user_list);
showSnackbar('info', "Uploading user sheet. This may take a few moments...");
PostData(post_url, final_arr, postSuccess, postFail);
setState(new_state => ({
...new_state,
data_post: "SENDING",
file_not_selected: false
}))
} else {
setState(new_state => ({
...new_state,
file_not_selected: true
}))
}
}
}
function postSuccess(response) {
showSnackbar('success', "User sheet uploaded successfully");
setState(new_state => ({ ...new_state, data_post: "SUCCESS" }))
toggleForm();
fetchRecentUploadedFile();
}
function postFail(response) {
var error_msg = showErrorHandlerUpdated(response);
showSnackbar('error', "Unable to upload users.", error_msg);
setState(new_state => ({
...new_state,
data_post: "FAILED",
password_type_secrets: { error: { name: response.name ? response.name : null } },
error_in_save: error_msg
}))
}
const fetchRecentUploadedFile = () => {
var requestInfo = {
endPoint: GenerateURL({}, properties.api.get_activities_details),
httpMethod: "GET",
httpHeaders: { "Content-Type": "application/json" }
}
requestInfo.endPoint = requestInfo.endPoint + "?activity_name=user"
InvokeApi(requestInfo, handlefetchRecentUploadedFileSuccess, handlefetchRecentUploadedFileFailed);
setState(new_state => ({ ...new_state, loading: true }));
}
const handlefetchRecentUploadedFileSuccess = (response) => {
setState(new_state => ({
...new_state,
loading: false,
recent_user_list: response.results,
error_msg: null
}));
}
const handlefetchRecentUploadedFileFailed = (error) => {
setState(new_state => ({ ...new_state, loading: false, error_msg: error }));
}
const toggleForm = () => {
setState((prev_state) => ({
...prev_state,
show_upload_tab: !prev_state.show_upload_tab,
}))
}
function handleClose() {
setState({ ...state, data_post: null, errorInUpload: null });
}
const removeValidations = () => {
setState({ ...state, file_not_selected: false });
}
function setErrorInCaseUploadFails(error) {
const message = error.message ? "Please check the upload file for spaces or null characters" : null
setState((new_state) => ({ ...new_state, errorInUpload: message }))
}
return (
<div
className="pd-20"
style={{ backgroundColor: "var(--color-white)", height: '100%' }}
>
{/* ── Header ── */}
<div className="head d-flex align-center space-between mb-20">
<PageHeader
heading="Upload Bulk User Sheet"
subHeading="Displaying list of user sheets uploaded in the past"
icon="ri-upload-cloud-2-line"
primaryButton={null}
/>
<div className="btn-group ">
<Tooltip title="Back">
<button className="btn-sq-icon-primary d-flex align-center" onClick={() => navigate("/manage-users")}>
<span className="ri-arrow-left-line "></span>
</button>
</Tooltip>
<Tooltip title="Refresh Page">
<button className="btn-sq-icon-primary d-flex align-center" onClick={fetchRecentUploadedFile}>
<span className="ri-restart-line"></span>
</button>
</Tooltip>
<Tooltip title="Upload User Sheet" >
<button className="btn-sq-icon-primary d-flex align-center" onClick={toggleForm}>
<span className="ri-upload-fill "></span>
</button>
</Tooltip>
</div>
</div>
{/* ── Upload panel ── */}
{state.show_upload_tab && (
<div
className="mb-20"
style={{
border: "1px solid var(--color-border-grey)",
borderRadius: "var(--radius-8)",
overflow: "hidden",
backgroundColor: "var(--color-white)",
}}
>
{/* panel header */}
<div style={{
display: "flex", alignItems: "center", justifyContent: "space-between",
padding: "var(--space-12) var(--space-16)",
borderBottom: "1px solid var(--color-border-grey)",
background: "var(--color-grey-100)",
}}>
<div className="d-flex align-center" style={{ gap: "var(--space-8)" }}>
<span className="ri-file-upload-line" style={{ fontSize: "var(--font-16)", color: "var(--color-primary-500)" }} />
<span style={{ fontSize: "var(--font-14)", fontWeight: "var(--font-weight-600)", color: "var(--color-content-primary)" }}>
Upload User Sheet
</span>
</div>
<button
className="btn btn-transparent d-flex align-center justify-center"
onClick={toggleForm}
style={{ width: "var(--space-28)", height: "var(--space-28)", borderRadius: "var(--radius-6)" }}
>
<span className="ri-close-line" style={{ fontSize: "var(--font-18)", color: "var(--color-content-secondary)" }} />
</button>
</div>
{/* file upload body */}
<div style={{ padding: "var(--space-16)" }}>
<div className={state.file_not_selected ? "set-error" : ""}>
<FileUpload
inherits={state.child_inherits.fileUpload}
show_file_content={"false"}
varient="single"
hitCallbackFn={removeValidations}
state={state.fileUpload ? state.fileUpload.files ? getFileUploadState() : null : null}
setErrorInCaseUploadFails={setErrorInCaseUploadFails}
fileSupportText="Upload a single file in CSV format."
/>
{state.file_not_selected && (
<p className='color-danger font-11' style={{ marginTop: 'var(--space-4)', marginLeft: 'var(--space-10)' }}>This field is mandatory</p>
)}
</div>
</div>
{/* panel footer */}
<div style={{
display: "flex", alignItems: "center", justifyContent: "flex-end",
gap: "var(--space-8)", padding: "var(--space-12) var(--space-16)",
borderTop: "1px solid var(--color-border-grey)",
background: "var(--color-grey-100)",
}}>
<button
className="btn btn-outline-grey"
onClick={toggleForm}
style={{ height: "var(--space-36)", borderRadius: "var(--radius-8)", padding: " var(--space-10)", fontSize: "var(--font-12)" }}
>
Cancel
</button>
<Button
className="btn btn-primary"
onClick={ValidateAndUploadSheet}
isLoading={state.data_post === 'SENDING'}
style={{ height: "var(--space-36)", borderRadius: "var(--radius-8)", padding: "var(--space-10)", fontSize: "var(--font-12)", fontWeight: "var(--font-weight-600)" }}
>
Upload Sheet
</Button>
</div>
</div>
)}
{/* ── Table card ── */}
<div style={tableStyles.card}>
{state.loading ? (
<UploadUsersTableSkeleton />
) : state.error_msg ? (
<ErrorComponent variant="error-box" error={state.error_msg} />
) : state.recent_user_list && state.recent_user_list.length > 0 ? (
<>
{/* Table header */}
<div style={tableStyles.header}>
{TABLE_COLUMNS.map((col) => (
<span key={col.key} style={tableStyles.headerLabel}>{col.label}</span>
))}
</div>
{/* Table rows */}
{state.recent_user_list.map((item, index) => (
<ActivityTableRow
key={item.id || item.activity_token || index}
item={item}
/>
))}
</>
) : (
/* Empty state */
<div style={{
display: 'flex', flexDirection: 'column', alignItems: 'center',
height: '250px', justifyContent: 'center',
padding: 'var(--space-60) var(--space-20)', gap: 'var(--space-12)',
}}>
<div style={{
width: 56, height: 56, borderRadius: '50%',
background: 'var(--color-grey-100)',
display: 'flex', alignItems: 'center', justifyContent: 'center',
}}>
<span className="ri-file-upload-line" style={{ fontSize: 24, color: 'var(--color-badge-grey-text)' }} />
</div>
<div style={{ textAlign: 'center' }}>
<p style={{ fontSize: 'var(--font-14)', fontWeight: 'var(--font-weight-600)', color: 'var(--color-text-primary)', marginBottom: 'var(--space-4)' }}>
No user sheet uploaded yet
</p>
<p style={{ fontSize: 'var(--font-12)', color: 'var(--color-content-secondary)', marginBottom: 'var(--space-12)' }}>
Upload a CSV sheet to bulk-add users to the platform
</p>
<button
className="btn btn-primary d-flex align-center"
onClick={toggleForm}
style={{
margin: '0 auto', height: "var(--space-36)",
borderRadius: "var(--radius-8)", gap: "var(--space-6)",
padding: "0 var(--space-16)", fontSize: "var(--font-14)",
fontWeight: "var(--font-weight-600)",
}}
>
<span className="ri-upload-2-line" style={{ fontSize: "var(--font-16)", lineHeight: 1 }} />
Upload Sheet
</button>
</div>
</div>
)}
</div>
</div>
)
}
UploadUsers.propTypes = {
...PropTypes.objectOf(PropTypes.any),
}
export default UploadUsers