Skip to content

Commit

Permalink
replace classNames with cn
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Jan 29, 2025
1 parent d011d26 commit f508df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/CAREUI/misc/PrintPreview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ReactNode } from "react";
import { useTranslation } from "react-i18next";

import { cn } from "@/lib/utils";

import CareIcon from "@/CAREUI/icons/CareIcon";
import {
ZoomControls,
Expand All @@ -14,8 +16,6 @@ import Page from "@/components/Common/Page";

import useBreakpoints from "@/hooks/useBreakpoints";

import { classNames } from "@/Utils/utils";

type Props = {
children: ReactNode;
disabled?: boolean;
Expand All @@ -41,7 +41,7 @@ export default function PrintPreview(props: Props) {
<ZoomTransform className="origin-top-left bg-white p-10 text-sm shadow-2xl transition-all duration-200 ease-in-out lg:origin-top print:transform-none">
<div
id="section-to-print"
className={classNames("w-full", props.className)}
className={cn("w-full", props.className)}
>
{props.children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Resource/PrintResourceLetter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function PrintResourceLetter({ id }: { id: string }) {
}
return (
<PrintPreview title={t("request_letter")}>
<div id="section-to-print" className="print bg-white">
<div className="min-h-screen bg-white">
<div className="mx-4 p-4 lg:mx-20">
{/* Header */}
<div className="mb-8 text-center">
Expand Down

0 comments on commit f508df5

Please sign in to comment.