feat: add notification UI

showPopup was also refactored to be better
This commit is contained in:
Jordan Knott
2020-08-12 20:54:14 -05:00
parent feea209507
commit 0caa803d27
34 changed files with 2516 additions and 104 deletions

View File

@ -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 },
);
}}
>

View File

@ -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' },
);
}}
/>