Skip to content

Commit

Permalink
Merge pull request #21 from Project-Unifest/hotfix/make-booth-image-i…
Browse files Browse the repository at this point in the history
…nteractable

Hotfix/make booth image interactable
  • Loading branch information
algoORgoal committed May 17, 2024
2 parents 5259418 + 62a3ca0 commit 807a189
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,14 @@ jobs:
build_command: yarn build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true
env:
# build time environment variables
API_URL: ${{ vars.API_URL}}
BASE_URL: ${{ vars.BASE_URL}}
IMAGE_SERVER_HOSTNAME: ${{ vars.IMAGE_SERVER_HOSTNAME }}
# run time environment variables
NEXT_PUBLIC_API_URL: ${{ vars.NEXT_PUBLIC_API_URL }}
NEXT_PUBLIC_BASE_URL: ${{ vars.NEXT_PUBLIC_BASE_URL}}
# run time environment secrets
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY: ${{ secrets.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY }}
NEXT_PUBLIC_GOOGLE_MAPS_ID: ${{ secrets.NEXT_PUBLIC_GOOGLE_MAPS_ID }}
1 change: 1 addition & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
# build time environment variables
API_URL: ${{ vars.API_URL}}
BASE_URL: ${{ vars.BASE_URL}}
IMAGE_SERVER_HOSTNAME: ${{ vars.IMAGE_SERVER_HOSTNAME }}
# build time environment secrets
VERIFIED_ACCOUNT_ID: ${{ secrets.VERIFIED_ACCOUNT_ID}}
VERIFIED_ACCOUNT_PASSWORD: ${{ secrets.VERIFIED_ACCOUNT_PASSWORD}}
Expand Down
14 changes: 12 additions & 2 deletions src/features/booth/ui/EditImageBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,19 @@ export function EditImageBox({ thumbnail, editThumbnail }: ImageBoxPropsType) {
return (
<>
{thumbnail ? (
<div className="relative flex h-60 w-full cursor-pointer items-center justify-center">
<Label
htmlFor="booth-uploaded-image"
className="relative flex h-60 w-full cursor-pointer items-center justify-center"
>
<Image src={thumbnail} alt="부스 이미지" fill />
</div>
<Input
type="file"
className="sr-only"
accept="image/*"
id="booth-uploaded-image"
onChange={handleFileChange}
/>
</Label>
) : (
<Label
htmlFor="booth-image"
Expand Down

1 comment on commit 807a189

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for unifest-web-deployment ready!

✅ Preview
https://unifest-web-deployment-19k1e9805-algoorgoals-projects.vercel.app

Built with commit 807a189.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.