+
),
From 9c91845e67a7c9026c3450c1d7b67fa45b02ffec Mon Sep 17 00:00:00 2001
From: Jaied Al Sabid <87969327+jaieds@users.noreply.github.com>
Date: Thu, 21 Nov 2024 13:19:55 +0600
Subject: [PATCH 5/6] chore: Lint
---
.github/workflows/storybook-deployment.yml | 66 +++++++++++-----------
src/components/dropzone/dropzone.tsx | 16 +++---
2 files changed, 41 insertions(+), 41 deletions(-)
diff --git a/.github/workflows/storybook-deployment.yml b/.github/workflows/storybook-deployment.yml
index 4d0265bc..22df860c 100644
--- a/.github/workflows/storybook-deployment.yml
+++ b/.github/workflows/storybook-deployment.yml
@@ -1,39 +1,39 @@
# Workflow name
name: Build and Publish Storybook to GitHub Pages
-
+
on:
- # Event for the workflow to run on
- push:
- branches:
- - master
-
+ # Event for the workflow to run on
+ push:
+ branches:
+ - master
+
permissions:
- contents: read
- pages: write
- id-token: write
-
+ contents: read
+ pages: write
+ id-token: write
+
# List of jobs
jobs:
- deploy:
- environment:
- name: github-pages
- url: ${{ steps.build-publish.outputs.page_url }}
- runs-on: ubuntu-latest
- # Job steps
- steps:
- # Manual Checkout
- - uses: actions/checkout@v4
-
- # Set up Node
- - uses: actions/setup-node@v4
- with:
- node-version: '20.x'
-
- #👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- - id: build-publish
- uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
- with:
- install_command: npm install # default: npm ci
- build_command: npm run build && npm run build-storybook # default: npm run build-storybook
- path: storybook-static # default: dist/storybook
- checkout: false # default: true
\ No newline at end of file
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.build-publish.outputs.page_url }}
+ runs-on: ubuntu-latest
+ # Job steps
+ steps:
+ # Manual Checkout
+ - uses: actions/checkout@v4
+
+ # Set up Node
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '20.x'
+
+ #👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
+ - id: build-publish
+ uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
+ with:
+ install_command: npm install # default: npm ci
+ build_command: npm run build && npm run build-storybook # default: npm run build-storybook
+ path: storybook-static # default: dist/storybook
+ checkout: false # default: true
diff --git a/src/components/dropzone/dropzone.tsx b/src/components/dropzone/dropzone.tsx
index 7eddebc3..fe63f520 100644
--- a/src/components/dropzone/dropzone.tsx
+++ b/src/components/dropzone/dropzone.tsx
@@ -42,17 +42,17 @@ export const FilePreview = () => {
const { file, removeFile, isLoading, error, errorText } =
useFileUploadContext()!;
- if ( ! file ) {
- return null;
- }
-
- const renderFileIcon = useMemo(() => {
+ const renderFileIcon = useMemo( () => {
return (
);
- } , [ file ]);
+ }, [ file ] );
+
+ if ( ! file ) {
+ return null;
+ }
return (
{
) }
{ isLoading ? (
-
-
+
+
) : (