Skip to content

Commit

Permalink
Merge pull request #1105 from tchapgouv/1104-compatibility-warning-page
Browse files Browse the repository at this point in the history
feat(compatibility-page); update compatibility page to be tchap friendly
  • Loading branch information
areox-net authored Sep 11, 2024
2 parents 6257c74 + 48b7021 commit 0356170
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
8 changes: 8 additions & 0 deletions modules/tchap-translations/tchap_translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -797,5 +797,13 @@
"migrating_crypto": {
"en": "Hang tight. We are updating %(brand)s to make encryption faster and more reliable. Don't worry, it can take some time",
"fr": "Accrochez-vous. Nous mettons à jour %(brand)s pour que le chiffrement soit plus rapide et plus fiable. N'ayez crainte, cela peut prendre jusqu'à 10 minutes"
},
"incompatible_browser|continue_warning": {
"en": "I still want to use Tchap with this browser",
"fr": "Je souhaite tout de même utiliser Tchap avec ce navigateur"
},
"incompatible_browser|title": {
"en": "Your browser is not optimal to use Tchap",
"fr": "Votre navigateur n'est pas optimal pour l'utilisation de Tchap"
}
}
11 changes: 8 additions & 3 deletions src/async-components/structures/CompatibilityView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ const CompatibilityView: React.FC<IProps> = ({ onAccept }) => {
<div className="mx_ErrorView_container">
<div className="mx_HomePage_header">
<span className="mx_HomePage_logo">
<img height="42" src="themes/element/img/logos/element-logo.svg" alt="Element" />
{/* :TCHAP: compatibitily-warning-page*/}
{/* <img height="42" src="themes/element/img/logos/element-logo.svg" alt="Element" /> */}
<img height="42" src="themes/tchap/img/logos/tchap-logo.svg" alt="Tchap" />
{/* end :TCHAP: */}
</span>
<h1>{_t("incompatible_browser|title")}</h1>
</div>
Expand Down Expand Up @@ -133,13 +136,15 @@ const CompatibilityView: React.FC<IProps> = ({ onAccept }) => {
</div>
</div>

<div className="mx_HomePage_row mx_Center mx_Spacer">
{/* :TCHAP: compatibitily-warning-page*/}
{/* <div className="mx_HomePage_row mx_Center mx_Spacer">
<p className="mx_Spacer">
<a href="https://element.io" target="_blank" className="mx_FooterLink">
{_t("go_to_element_io")}
</a>
</p>
</div>
</div> */}
{/* end :TCHAP: */}
</div>
</div>
);
Expand Down

0 comments on commit 0356170

Please sign in to comment.