fix: Conditionally show collections tooltip on invite screen (#6576)
* fix: Conditionally show collections tooltip on invite screen * render collections tooltip only if non-empty
This commit is contained in:
@@ -137,7 +137,7 @@ function Invite({ onSubmit }: Props) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const collectionCount = collections.nonPrivate.length;
|
const collectionCount = collections.nonPrivate.length;
|
||||||
const collectionAccessNote = (
|
const collectionAccessNote = collectionCount ? (
|
||||||
<span>
|
<span>
|
||||||
<Trans>Invited members will receive access to</Trans>{" "}
|
<Trans>Invited members will receive access to</Trans>{" "}
|
||||||
<Tooltip
|
<Tooltip
|
||||||
@@ -155,7 +155,7 @@ function Invite({ onSubmit }: Props) {
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
.
|
.
|
||||||
</span>
|
</span>
|
||||||
);
|
) : undefined;
|
||||||
|
|
||||||
const options = React.useMemo(() => {
|
const options = React.useMemo(() => {
|
||||||
const options = [
|
const options = [
|
||||||
|
|||||||
Reference in New Issue
Block a user