Skip to content

Commit

Permalink
Updated messaging for successful CSV upload
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisischris committed Sep 11, 2024
1 parent a42c10d commit 54d10c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/protected/properties/bulk-property.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const BulkProperty = () => {
<a target='_blank' className='underline' href='/template.csv'>Example Template CSV</a>
<input onChange={onChange} type='file' accept='.csv' />
{data.length > 0 && <div className='flex flex-col'>
<div>Showing first 10 rows</div>
<div>CSV successfully uploaded! Showing first 10 rows:</div>
{data.slice(0, 10).map((row, index) => <div key={index} className={`p-1 flex flex-row gap-2 ${index === 0 && 'bg-card'}`}>
{row.map((cell, index) => <div key={index} style={{ width: `${100 / data[0].length}%` }} className='truncate'>{cell}</div>)}
</div>)}
Expand Down

0 comments on commit 54d10c2

Please sign in to comment.