From b2c0f4eaf19adb5965f0cf1efb64e1a96e943947 Mon Sep 17 00:00:00 2001
From: NAJEONG KIM <73640737+Najeong-Kim@users.noreply.github.com>
Date: Wed, 6 Nov 2024 22:20:32 +0900
Subject: [PATCH] fix: update card ui, slope camera click range and toast (#45)
* fix: update card ui
* fix: fix slope camera click range and toast
---
src/features/slop/ui/slop-camera.tsx | 16 +++++++++++-----
src/shared/lib/postAppMessage.ts | 6 ++----
src/shared/ui/card.tsx | 2 +-
src/widgets/discovery/ui/discovery-card.tsx | 2 +-
4 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/src/features/slop/ui/slop-camera.tsx b/src/features/slop/ui/slop-camera.tsx
index f9902d0..e9cb36a 100644
--- a/src/features/slop/ui/slop-camera.tsx
+++ b/src/features/slop/ui/slop-camera.tsx
@@ -1,7 +1,9 @@
import React, { useEffect, useRef } from 'react';
import { createPortal } from 'react-dom';
+import { toast } from 'sonner';
import type { Position, Webcam } from '@/entities/slop/model/model';
import ArrowRightIcon from '@/shared/icons/arrow-right';
+import NeutralFace from '@/shared/icons/neutral-face';
import { cn } from '@/shared/lib';
import postAppMessage from '@/shared/lib/postAppMessage';
import CameraButton from '@/shared/ui/cam-button';
@@ -44,7 +46,13 @@ const SlopCamera = ({
setOpenCamera();
if (!src) {
- postAppMessage('선택한 웹캠은 아직 준비중 이에요');
+ postAppMessage('선택한 웹캠은 아직 준비중 이에요', (message) =>
+ toast(
+ <>
+
- {name} -
+{name}