update share

This commit is contained in:
Nate Kelley 2025-03-22 21:32:57 -06:00
parent 2dcd559b26
commit 67d05a44e5
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
2 changed files with 4 additions and 3 deletions

View File

@ -23,13 +23,13 @@ export const IndividualSharePerson: React.FC<{
<div className="flex h-full flex-col items-center justify-center">
<Avatar className="h-[24px] w-[24px]" name={name || email} />
</div>
<div className="flex flex-col space-y-0.5 overflow-hidden">
<Text truncate className="">
<div className="flex flex-col space-y-0 overflow-hidden">
<Text truncate className="leading-1.3">
{name || email}
</Text>
{isSameEmailName ? null : (
<Text truncate size="xs" variant="tertiary">
<Text truncate size="xs" variant="tertiary" className="leading-1.3">
{email}
</Text>
)}

View File

@ -116,6 +116,7 @@ const ShareMenuContentShare: React.FC<ShareMenuContentBodyProps> = React.memo(
});
const onUpdateShareRole = useMemoizedFn(async (email: string, role: ShareRole | null) => {
console.log({ email, assetId, assetType });
if (role) {
const payload: Parameters<typeof onUpdateMetricShare>[0] = {
id: assetId,