mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
Replace all @untitledui/icons imports across 55 files with equivalent
@fortawesome/pro-duotone-svg-icons icons, using FontAwesomeIcon wrappers
(FC<{ className?: string }>) for prop-based usage and inline replacements
for direct JSX usage. Drops unsupported Untitled UI-specific props
(strokeWidth, numeric size). TypeScript compiles clean with no errors.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
84 lines
3.9 KiB
TypeScript
84 lines
3.9 KiB
TypeScript
import type { FC } from "react";
|
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
import { faBookOpen, faCheck, faCopy, faCube, faCircleQuestion } from "@fortawesome/pro-duotone-svg-icons";
|
|
|
|
const BookOpen01: FC<{ className?: string }> = ({ className }) => <FontAwesomeIcon icon={faBookOpen} className={className} />;
|
|
const Check: FC<{ className?: string }> = ({ className }) => <FontAwesomeIcon icon={faCheck} className={className} />;
|
|
const Copy01: FC<{ className?: string }> = ({ className }) => <FontAwesomeIcon icon={faCopy} className={className} />;
|
|
const Cube01: FC<{ className?: string }> = ({ className }) => <FontAwesomeIcon icon={faCube} className={className} />;
|
|
const HelpCircle: FC<{ className?: string }> = ({ className }) => <FontAwesomeIcon icon={faCircleQuestion} className={className} />;
|
|
import { Button } from "@/components/base/buttons/button";
|
|
import { ButtonUtility } from "@/components/base/buttons/button-utility";
|
|
import { UntitledLogoMinimal } from "@/components/foundations/logo/untitledui-logo-minimal";
|
|
import { useClipboard } from "@/hooks/use-clipboard";
|
|
|
|
export const HomeScreen = () => {
|
|
const clipboard = useClipboard();
|
|
|
|
return (
|
|
<div className="flex h-dvh flex-col">
|
|
<div className="flex min-h-0 flex-1 flex-col items-center justify-center px-4">
|
|
<div className="relative flex size-28 items-center justify-center">
|
|
<UntitledLogoMinimal className="size-10" />
|
|
</div>
|
|
|
|
<h1 className="max-w-3xl text-center text-display-sm font-semibold text-primary">Untitled UI Vite starter kit</h1>
|
|
|
|
<p className="mt-2 max-w-xl text-center text-lg text-tertiary">
|
|
Get started by using existing components that came with this starter kit or add new ones:
|
|
</p>
|
|
|
|
<div className="relative mt-6 flex h-10 items-center rounded-lg border border-secondary bg-secondary">
|
|
<code className="px-3 font-mono text-secondary">npx untitledui@latest add</code>
|
|
|
|
<hr className="h-10 w-px bg-border-secondary" />
|
|
|
|
<ButtonUtility
|
|
color="tertiary"
|
|
size="sm"
|
|
tooltip="Copy"
|
|
className="mx-1"
|
|
icon={clipboard.copied ? Check : Copy01}
|
|
onClick={() => clipboard.copy("npx untitledui@latest add")}
|
|
/>
|
|
</div>
|
|
|
|
<div className="mt-6 flex items-center gap-3">
|
|
<Button
|
|
href="https://www.untitledui.com/react/docs/introduction"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
color="link-color"
|
|
size="lg"
|
|
iconLeading={BookOpen01}
|
|
>
|
|
Docs
|
|
</Button>
|
|
<div className="h-px w-4 bg-brand-solid" />
|
|
<Button
|
|
href="https://www.untitledui.com/react/resources/icons"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
color="link-color"
|
|
size="lg"
|
|
iconLeading={Cube01}
|
|
>
|
|
Icons
|
|
</Button>
|
|
<div className="h-px w-4 bg-brand-solid" />
|
|
<Button
|
|
href="https://github.com/untitleduico/react/issues/"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
color="link-color"
|
|
size="lg"
|
|
iconLeading={HelpCircle}
|
|
>
|
|
Help
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|