Skip to content

Commit

Permalink
Merge pull request #2 from KB-iGOT/text-change-for-xls
Browse files Browse the repository at this point in the history
update for textual changes for xlsx
  • Loading branch information
vishnubansaltarento authored Aug 13, 2024
2 parents 8f3940c + 6158fb9 commit 9ed3541
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@
(dblclick)="$event.preventDefault()">
<img src="/assets/icons/csv-file.svg" alt="CSV file logo" />
</div>
<div *ngIf="showFileError" class="error-msg">Upload csv format file only</div>
<div *ngIf="showFileError" class="error-msg">Upload xlsx format file only</div>
<div class="flex flex-col items-center">
<div class="text-primary cursor-pointer" (click)="fileInput.click()" (dblclick)="$event.preventDefault()">
Browse files</div>
<input hidden type="file" #fileInput (click)="handleFileClick($event)" (change)="handleOnFileChange($event)"
name="file" placeholder="Choose file" (dblclick)="$event.preventDefault();" accept=".csv" />
name="file" placeholder="Choose file" (dblclick)="$event.preventDefault();" accept=".xlsx, .xls" />
<!-- <div class="flex">or</div>
<div class="flex">Drag file to upload</div> -->
</div>
<div class="flex flex-col items-center margin-bottom-m">
<div class="flex">Max file size: 100 MB</div>
<div class="flex">Supported file types: csv</div>
<div class="flex">Supported file types: xlsx</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@
(dblclick)="$event.preventDefault()">
<img src="/assets/icons/csv-file.svg" alt="CSV file logo" />
</div>
<div *ngIf="showFileError" class="error-msg">Upload csv format file only</div>
<div *ngIf="showFileError" class="error-msg">Upload xlsx format file only</div>
<div class="flex flex-col items-center">
<div class="text-primary cursor-pointer" (click)="fileInput.click()" (dblclick)="$event.preventDefault()">
Browse files</div>
<input hidden type="file" #fileInput (click)="handleFileClick($event)" (change)="handleOnFileChange($event)"
name="file" placeholder="Choose file" (dblclick)="$event.preventDefault();" accept=".csv" />
name="file" placeholder="Choose file" (dblclick)="$event.preventDefault();" accept=".xlsx, .xls" />
<!-- <div class="flex">or</div>
<div class="flex">Drag file to upload</div> -->
</div>
<div class="flex flex-col items-center margin-bottom-m">
<div class="flex">Max file size: 100 MB</div>
<div class="flex">Supported file types: csv</div>
<div class="flex">Supported file types: xlsx</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 9ed3541

Please sign in to comment.