Merge branch 'fe/fix/button-and-design' into 'fe/develop'

Fix: 빌드 오류 해결, 버튼 디자인 통일, 리뷰 디자인 개선

See merge request s11-s-project/S11P21S002!253
This commit is contained in:
정현조 2024-09-30 19:05:36 +09:00
commit 7a5de56bc4
5 changed files with 24 additions and 25 deletions

View File

@ -35,7 +35,7 @@ export default function ImageSelection({ projectId, selectedImages, setSelectedI
<div className="mb-2 flex items-center justify-between"> <div className="mb-2 flex items-center justify-between">
<Label> ( )</Label> <Label> ( )</Label>
<Button <Button
variant="blue" variant={allSavedImages && selectedImages.length === allSavedImages.length ? 'blue' : 'black'}
size="sm" size="sm"
onClick={handleSelectAll} onClick={handleSelectAll}
type="button" type="button"
@ -57,7 +57,7 @@ export default function ImageSelection({ projectId, selectedImages, setSelectedI
<span className="truncate">{image.imageTitle}</span> <span className="truncate">{image.imageTitle}</span>
<div className="flex items-center space-x-2"> <div className="flex items-center space-x-2">
<Button <Button
variant={selectedImages.includes(image.id) ? 'red' : 'blue'} variant={selectedImages.includes(image.id) ? 'blue' : 'black'}
size="sm" size="sm"
onClick={() => handleImageSelect(image.id)} onClick={() => handleImageSelect(image.id)}
className="px-3 py-1" className="px-3 py-1"

View File

@ -153,7 +153,7 @@ export default function TrainingSettings({
{isTraining && ( {isTraining && (
<Button <Button
variant="secondary" variant="red"
size="lg" size="lg"
onClick={handleTrainingStop} onClick={handleTrainingStop}
> >

View File

@ -99,6 +99,7 @@ export default function ReviewForm({ projects, onSubmit }: ReviewFormProps): JSX
<Textarea <Textarea
id="content" id="content"
placeholder="리뷰 내용을 입력하세요" placeholder="리뷰 내용을 입력하세요"
className="ring-black"
{...register('content')} {...register('content')}
/> />
{errors.content && <p className="text-red-500">{errors.content.message}</p>} {errors.content && <p className="text-red-500">{errors.content.message}</p>}

View File

@ -13,8 +13,8 @@ const buttonVariants = cva(
// 'bg-gray-900 text-gray-50 hover:bg-gray-900/90 dark:bg-gray-50 dark:text-gray-900 dark:hover:bg-gray-50/90', // 'bg-gray-900 text-gray-50 hover:bg-gray-900/90 dark:bg-gray-50 dark:text-gray-900 dark:hover:bg-gray-50/90',
// destructive: // destructive:
// 'bg-red-500 text-gray-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-gray-50 dark:hover:bg-red-900/90', // 'bg-red-500 text-gray-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-gray-50 dark:hover:bg-red-900/90',
// outline: outline:
// 'border border-gray-200 bg-white hover:bg-gray-100 hover:text-gray-900 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50', 'border border-gray-200 bg-white hover:bg-gray-100 hover:text-gray-900 dark:border-gray-800 dark:bg-gray-950 dark:hover:bg-gray-800 dark:hover:text-gray-50',
// outlinePrimary: // outlinePrimary:
// 'border border-primary text-primary hover:bg-primary hover:text-white dark:border-primary dark:text-primary dark:hover:bg-primary dark:hover:text-white disabled:border-gray-200 disabled:bg-white disabled:text-gray-500 disabled:hover:bg-gray-100 disabled:hover:text-gray-300', // 'border border-primary text-primary hover:bg-primary hover:text-white dark:border-primary dark:text-primary dark:hover:bg-primary dark:hover:text-white disabled:border-gray-200 disabled:bg-white disabled:text-gray-500 disabled:hover:bg-gray-100 disabled:hover:text-gray-300',
// secondary: // secondary:

View File

@ -130,9 +130,12 @@ export default function ReviewDetail(): JSX.Element {
</div> </div>
</div> </div>
)} )}
<div className="mt-6 flex justify-end gap-2">
<Link to={`/admin/${workspaceId}/reviews`}>
<Button variant="black"> </Button>
</Link>
{reviewDetail.reviewStatus !== 'APPROVED' && reviewDetail.reviewStatus !== 'REJECTED' && ( {reviewDetail.reviewStatus !== 'APPROVED' && reviewDetail.reviewStatus !== 'REJECTED' && (
<div className="actions mt-6 flex justify-end space-x-2"> <>
<Button <Button
variant="red" variant="red"
onClick={handleReject} onClick={handleReject}
@ -140,18 +143,13 @@ export default function ReviewDetail(): JSX.Element {
{'거부'} {'거부'}
</Button> </Button>
<Button <Button
variant="black" variant="blue"
onClick={handleApprove} onClick={handleApprove}
> >
{'승인'} {'승인'}
</Button> </Button>
</div> </>
)} )}
<div className="mt-6">
<Link to={`/admin/${workspaceId}/reviews`}>
<Button variant="blue"> </Button>
</Link>
</div> </div>
</div> </div>
); );