260716_01_ENH: 본 서버에서 기동 후 중간 테스트를 위한 커밋

This commit is contained in:
2026-07-16 09:12:57 +09:00
parent c710a60beb
commit 36c7b41191
29 changed files with 864 additions and 532 deletions

View File

@@ -1,6 +1,7 @@
'use client'
import type { ReactNode } from 'react'
import { useAtomValue } from 'jotai'
import { Button } from '@/components/ui/button'
import {
Dialog,
@@ -12,6 +13,7 @@ import {
DialogTitle,
} from '@/components/ui/dialog'
import { cn } from '@/lib/utils'
import { loadingAtom } from '@/store/jotai/loading'
export interface KriDialogProps {
open: boolean
@@ -42,6 +44,8 @@ export function KriDialog({
bodyClassName,
footerClassName,
}: KriDialogProps) {
const isLoading = useAtomValue(loadingAtom)
const renderFooter = () => {
if (footer !== undefined) {
if (footer === null) return null
@@ -63,7 +67,16 @@ export function KriDialog({
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className={contentClassName} showCloseButton={showCloseButton}>
<DialogContent
className={contentClassName}
showCloseButton={showCloseButton}
onInteractOutside={(e) => {
if (isLoading) e.preventDefault()
}}
onEscapeKeyDown={(e) => {
if (isLoading) e.preventDefault()
}}
>
<DialogHeader>
<DialogTitle>{title}</DialogTitle>
{description ? <DialogDescription>{description}</DialogDescription> : null}