[as] chore: 행정지원 메뉴 수정
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
Button,
|
||||
Dialog,
|
||||
DialogClose,
|
||||
DialogContent,
|
||||
DialogFooter,
|
||||
} from "@common/components";
|
||||
import { Button, Dialog, DialogClose, DialogContent, DialogFooter } from "@common/components";
|
||||
|
||||
import { useAlertStore } from "../lib/use-alert-store";
|
||||
|
||||
@@ -20,7 +14,7 @@ function AlertDialog() {
|
||||
<Dialog open={!!message} onOpenChange={handleOpenChange}>
|
||||
<DialogContent aria-describedby={undefined}>
|
||||
<div className="py-10">
|
||||
<p className="text-foreground whitespace-pre-line text-center text-[1.4rem]">
|
||||
<p className="whitespace-pre-line break-keep text-center text-[1.4rem] text-foreground">
|
||||
{message}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
export { PageLayout } from "./page-layout";
|
||||
export { NoData } from "./no-data";
|
||||
export { PageLayout } from "./page-layout";
|
||||
export type { TextShimmerProps } from "./text-shimmer";
|
||||
export { TEXT_SHIMMER_CLASS, TextShimmer } from "./text-shimmer";
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
import { cn } from "@common/components";
|
||||
|
||||
const TEXT_SHIMMER_CLASS =
|
||||
"animate-text-shimmer bg-gradient-to-r from-muted-foreground via-muted to-muted-foreground bg-[length:200%_100%] bg-clip-text text-transparent";
|
||||
|
||||
interface TextShimmerProps extends React.ComponentPropsWithoutRef<"span"> {
|
||||
active?: boolean;
|
||||
}
|
||||
|
||||
function TextShimmer({ active = false, className, children, ...props }: TextShimmerProps) {
|
||||
return (
|
||||
<span className={cn(className, active && TEXT_SHIMMER_CLASS)} {...props}>
|
||||
{children}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
export { TEXT_SHIMMER_CLASS, TextShimmer };
|
||||
export type { TextShimmerProps };
|
||||
Reference in New Issue
Block a user