mirror of https://github.com/buster-so/buster.git
update share
This commit is contained in:
parent
2dcd559b26
commit
67d05a44e5
|
@ -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>
|
||||
)}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue