Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compatibility-page); update compatibility page to be tchap friendly #1105

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading