feat: add notification UI
showPopup was also refactored to be better
This commit is contained in:
@ -460,7 +460,7 @@ const ProjectBoard: React.FC<ProjectBoardProps> = ({ projectID, onCardLabelClick
|
||||
}}
|
||||
/>
|
||||
</Popup>,
|
||||
185,
|
||||
{ width: 185 },
|
||||
);
|
||||
}}
|
||||
>
|
||||
@ -479,7 +479,7 @@ const ProjectBoard: React.FC<ProjectBoardProps> = ({ projectID, onCardLabelClick
|
||||
}}
|
||||
/>
|
||||
</Popup>,
|
||||
185,
|
||||
{ width: 185 },
|
||||
);
|
||||
}}
|
||||
>
|
||||
@ -499,7 +499,7 @@ const ProjectBoard: React.FC<ProjectBoardProps> = ({ projectID, onCardLabelClick
|
||||
labels={labelsRef}
|
||||
members={membersRef}
|
||||
/>,
|
||||
200,
|
||||
{ width: 200 },
|
||||
);
|
||||
}}
|
||||
>
|
||||
|
@ -290,10 +290,10 @@ const Details: React.FC<DetailsProps> = ({
|
||||
},
|
||||
});
|
||||
if (loading) {
|
||||
return <div>loading</div>;
|
||||
return null;
|
||||
}
|
||||
if (!data) {
|
||||
return <div>loading</div>;
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
@ -501,6 +501,7 @@ const Details: React.FC<DetailsProps> = ({
|
||||
onCancel={NOOP}
|
||||
/>
|
||||
</Popup>,
|
||||
{ showDiamond: false, targetPadding: '0' },
|
||||
);
|
||||
}}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user