;
};
-const MAX = 7;
+const MAX = 13;
export const RegistrationsPreview = ({ registrations }: RegistrationsPreviewProps) => {
const sorted = registrations
@@ -52,7 +59,7 @@ export const RegistrationsPreview = ({ registrations }: RegistrationsPreviewProp
}
const extra = registrations.length - MAX;
- const names = `${sorted.map((registration) => ellipsis(registration.name ?? "", 7)).join(", ")}${
+ const names = `${sorted.map((registration) => registration.name?.split(" ")[0]).join(", ")}${
extra > 0 ? ` +${extra}` : ""
}`;
@@ -87,7 +94,7 @@ export const RegistrationsPreview = ({ registrations }: RegistrationsPreviewProp
PĆ„meldte brukere
-
+
{registrations
.filter((registration) => registration.status === "registered")
.map((registration) => (
@@ -96,7 +103,7 @@ export const RegistrationsPreview = ({ registrations }: RegistrationsPreviewProp
{registration.name}
))}
-
+
);