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">
|
<div className="flex h-full flex-col items-center justify-center">
|
||||||
<Avatar className="h-[24px] w-[24px]" name={name || email} />
|
<Avatar className="h-[24px] w-[24px]" name={name || email} />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col space-y-0.5 overflow-hidden">
|
<div className="flex flex-col space-y-0 overflow-hidden">
|
||||||
<Text truncate className="">
|
<Text truncate className="leading-1.3">
|
||||||
{name || email}
|
{name || email}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
{isSameEmailName ? null : (
|
{isSameEmailName ? null : (
|
||||||
<Text truncate size="xs" variant="tertiary">
|
<Text truncate size="xs" variant="tertiary" className="leading-1.3">
|
||||||
{email}
|
{email}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -116,6 +116,7 @@ const ShareMenuContentShare: React.FC<ShareMenuContentBodyProps> = React.memo(
|
||||||
});
|
});
|
||||||
|
|
||||||
const onUpdateShareRole = useMemoizedFn(async (email: string, role: ShareRole | null) => {
|
const onUpdateShareRole = useMemoizedFn(async (email: string, role: ShareRole | null) => {
|
||||||
|
console.log({ email, assetId, assetType });
|
||||||
if (role) {
|
if (role) {
|
||||||
const payload: Parameters<typeof onUpdateMetricShare>[0] = {
|
const payload: Parameters<typeof onUpdateMetricShare>[0] = {
|
||||||
id: assetId,
|
id: assetId,
|
||||||
|
|
Loading…
Reference in New Issue