Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

style: make hyperlinks underline on hover

Brad Barbineaaa8502e710
diff --git a/apps/carbon/app/components/Hyperlink.tsx b/apps/carbon/app/components/Hyperlink.tsx
index 8553eef03a..5f06fedc8e 100644
--- a/apps/carbon/app/components/Hyperlink.tsx
+++ b/apps/carbon/app/components/Hyperlink.tsx
@@ -14,7 +14,7 @@ const Hyperlink = ({
<Link
prefetch="intent"
className={cn(
- "text-foreground font-semibold text-sm cursor-pointer",
+ "text-foreground font-medium text-sm cursor-pointer hover:underline",
className
)}
{...props}
@@ -22,13 +22,7 @@ const Hyperlink = ({
{children}
</Link>
) : (
- <span
- className={cn(
- "text-foreground font-medium text-sm cursor-pointer ",
- className
- )}
- {...props}
- >
+ <span className={cn("text-foreground text-sm ", className)} {...props}>
{children}
</span>
);
diff --git a/apps/carbon/app/modules/account/ui/Profile/ProfileForm.tsx b/apps/carbon/app/modules/account/ui/Profile/ProfileForm.tsx
index 7f1d09cb06..8687d8f447 100644
--- a/apps/carbon/app/modules/account/ui/Profile/ProfileForm.tsx
+++ b/apps/carbon/app/modules/account/ui/Profile/ProfileForm.tsx
@@ -1,6 +1,6 @@
import { ValidatedForm } from "@carbon/form";
import { VStack } from "@carbon/react";
-import { useParams } from "@remix-run/react";
+import { useFetcher, useParams } from "@remix-run/react";
import { Hidden, Input, Submit, TextArea } from "~/components/Form";
import { accountProfileValidator } from "~/modules/account";
import type { User } from "~/modules/users";
@@ -13,6 +13,7 @@ type ProfileFormProps = {
const ProfileForm = ({ user }: ProfileFormProps) => {
const { personId } = useParams();
const isSelf = !personId;
+ const fetcher = useFetcher<{}>();
return (
<ValidatedForm
@@ -20,6 +21,7 @@ const ProfileForm = ({ user }: ProfileFormProps) => {
action={isSelf ? path.to.profile : path.to.person(personId)}
validator={accountProfileValidator}
defaultValues={user}
+ fetcher={fetcher}
className="w-full"
>
<VStack spacing={4}>