1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-23 15:42:28 +03:00

Iterate styling and decoration for the beta prompts

This commit is contained in:
Michael Telatynski
2021-04-28 22:47:08 +01:00
parent 5a921bf38a
commit 1802adb4d2
7 changed files with 65 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ const BetaCard = ({ title: titleOverride, featureId }: IProps) => {
{ value ? _t("Leave the beta") : _t("Join the beta") }
</AccessibleButton>
{ disclaimer && <div className="mx_BetaCard_disclaimer">
{ typeof disclaimer === "string" ? _t(disclaimer) : disclaimer() }
{ disclaimer(value) }
</div> }
</div>
<img src={image} alt="" />