update fractal description
This commit is contained in:
parent
dd372dbb50
commit
2f48df9e9d
@ -37,9 +37,14 @@ const Fractal: TextClient = {
|
|||||||
case LinkKind.Alias:
|
case LinkKind.Alias:
|
||||||
case LinkKind.RoomId:
|
case LinkKind.RoomId:
|
||||||
case LinkKind.UserId:
|
case LinkKind.UserId:
|
||||||
return <span>Click the '+' button in the top right</span>;
|
return (
|
||||||
|
<span>
|
||||||
|
Click the '+' button in the top right and paste the
|
||||||
|
identifier
|
||||||
|
</span>
|
||||||
|
);
|
||||||
default:
|
default:
|
||||||
return <span>Weechat doesn't support this kind of link</span>;
|
return <span>Fractal doesn't support this kind of link</span>;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
copyString: (link) => {
|
copyString: (link) => {
|
||||||
@ -63,7 +68,7 @@ const Fractal: TextClient = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
description: 'Command-line Matrix interface using Weechat',
|
description: 'Fractal is a Matrix Client written in Rust',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Fractal;
|
export default Fractal;
|
||||||
|
@ -39,19 +39,22 @@ const ClientTile: React.FC<IProps> = ({ client, link }: IProps) => {
|
|||||||
clientTileLink: client.kind === ClientKind.LINKED_CLIENT,
|
clientTileLink: client.kind === ClientKind.LINKED_CLIENT,
|
||||||
});
|
});
|
||||||
|
|
||||||
const inviteButton =
|
let inviteButton: JSX.Element = <></>;
|
||||||
client.kind === ClientKind.LINKED_CLIENT ? (
|
if (client.kind === ClientKind.LINKED_CLIENT) {
|
||||||
<Button>Accept invite</Button>
|
inviteButton = <Button>Accept invite</Button>;
|
||||||
) : (
|
} else {
|
||||||
<Button
|
const copyString = client.copyString(link);
|
||||||
onClick={() =>
|
if (copyString !== '') {
|
||||||
navigator.clipboard.writeText(client.copyString(link))
|
inviteButton = (
|
||||||
}
|
<Button
|
||||||
flashChildren="Invite copied"
|
onClick={() => navigator.clipboard.writeText(copyString)}
|
||||||
>
|
flashChildren="Invite copied"
|
||||||
Copy invite
|
>
|
||||||
</Button>
|
Copy invite
|
||||||
);
|
</Button>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let clientTile = (
|
let clientTile = (
|
||||||
<Tile className={className}>
|
<Tile className={className}>
|
||||||
|
Loading…
Reference in New Issue
Block a user