aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2021-12-13 04:28:28 +0100
committerLibravatar kytwb <kytwb@pm.me>2021-12-13 04:28:28 +0100
commitab784b11abdf284f607f540ae8fa2c556d01fb71 (patch)
treebe9d34d24431315d751e7f8afa296953e00e4635 /src
parentFix linting (diff)
downloadferdium-app-ab784b11abdf284f607f540ae8fa2c556d01fb71.tar.gz
ferdium-app-ab784b11abdf284f607f540ae8fa2c556d01fb71.tar.zst
ferdium-app-ab784b11abdf284f607f540ae8fa2c556d01fb71.zip
Remove banner linking to missing survey
Diffstat (limited to 'src')
-rw-r--r--src/components/settings/supportFerdi/SupportFerdiDashboard.tsx33
-rw-r--r--src/i18n/locales/en-US.json5
2 files changed, 1 insertions, 37 deletions
diff --git a/src/components/settings/supportFerdi/SupportFerdiDashboard.tsx b/src/components/settings/supportFerdi/SupportFerdiDashboard.tsx
index 88e936b71..acebc979f 100644
--- a/src/components/settings/supportFerdi/SupportFerdiDashboard.tsx
+++ b/src/components/settings/supportFerdi/SupportFerdiDashboard.tsx
@@ -1,7 +1,5 @@
1import { defineMessages, useIntl } from 'react-intl'; 1import { defineMessages, useIntl } from 'react-intl';
2import { BrowserWindow } from '@electron/remote';
3import { mdiOpenInNew } from '@mdi/js'; 2import { mdiOpenInNew } from '@mdi/js';
4import InfoBar from '../../ui/InfoBar';
5import { Icon } from '../../ui/icon'; 3import { Icon } from '../../ui/icon';
6 4
7const messages = defineMessages({ 5const messages = defineMessages({
@@ -9,10 +7,6 @@ const messages = defineMessages({
9 id: 'settings.supportFerdi.headline', 7 id: 'settings.supportFerdi.headline',
10 defaultMessage: 'About Ferdi', 8 defaultMessage: 'About Ferdi',
11 }, 9 },
12 title: {
13 id: 'settings.supportFerdi.title',
14 defaultMessage: 'Do you like Ferdi?',
15 },
16 aboutIntro: { 10 aboutIntro: {
17 id: 'settings.supportFerdi.aboutIntro', 11 id: 'settings.supportFerdi.aboutIntro',
18 defaultMessage: 12 defaultMessage:
@@ -62,26 +56,8 @@ const messages = defineMessages({
62 id: 'settings.supportFerdi.textGitHubSponsors', 56 id: 'settings.supportFerdi.textGitHubSponsors',
63 defaultMessage: 'GitHub Sponsors', 57 defaultMessage: 'GitHub Sponsors',
64 }, 58 },
65 openSurvey: {
66 id: 'settings.supportFerdi.openSurvey',
67 defaultMessage: 'Open survey',
68 },
69 bannerText: {
70 id: 'settings.supportFerdi.bannerText',
71 defaultMessage: 'Do you want to help us improve Ferdi?',
72 },
73}); 59});
74 60
75const openSurveyWindow = () => {
76 let win = new BrowserWindow({ width: 670, height: 400 });
77 win.on('closed', () => {
78 // @ts-expect-error Type 'null' is not assignable to type 'BrowserWindow'.
79 win = null;
80 });
81
82 win.loadURL('https://rp28.typeform.com/to/E3phJT');
83};
84
85const SupportFerdiDashboard = () => { 61const SupportFerdiDashboard = () => {
86 const intl = useIntl(); 62 const intl = useIntl();
87 63
@@ -95,7 +71,6 @@ const SupportFerdiDashboard = () => {
95 </span> 71 </span>
96 </div> 72 </div>
97 <div className="settings__body"> 73 <div className="settings__body">
98 <h1>{intl.formatMessage(messages.title)}</h1>
99 <div> 74 <div>
100 <p className="settings__support-badges"> 75 <p className="settings__support-badges">
101 <a 76 <a
@@ -219,14 +194,6 @@ const SupportFerdiDashboard = () => {
219 </p> 194 </p>
220 </div> 195 </div>
221 </div> 196 </div>
222 <InfoBar
223 sticky
224 type="primary"
225 ctaLabel={intl.formatMessage(messages.openSurvey)}
226 onClick={openSurveyWindow}
227 >
228 {intl.formatMessage(messages.bannerText)}
229 </InfoBar>
230 </div> 197 </div>
231 ); 198 );
232}; 199};
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json
index bd905d7a4..888bfc911 100644
--- a/src/i18n/locales/en-US.json
+++ b/src/i18n/locales/en-US.json
@@ -356,9 +356,7 @@
356 "settings.services.tooltip.notificationsDisabled": "Notifications are disabled", 356 "settings.services.tooltip.notificationsDisabled": "Notifications are disabled",
357 "settings.services.updatedInfo": "Your changes have been saved", 357 "settings.services.updatedInfo": "Your changes have been saved",
358 "settings.supportFerdi.aboutIntro": "<p>Ferdi is an open-source and a community-lead application.</p><p>Thanks to the people who make this possbile:</p>", 358 "settings.supportFerdi.aboutIntro": "<p>Ferdi is an open-source and a community-lead application.</p><p>Thanks to the people who make this possbile:</p>",
359 "settings.supportFerdi.bannerText": "Do you want to help us improve Ferdi?",
360 "settings.supportFerdi.headline": "About Ferdi", 359 "settings.supportFerdi.headline": "About Ferdi",
361 "settings.supportFerdi.openSurvey": "Open survey",
362 "settings.supportFerdi.textDonation": "If you feel like supporting Ferdi development with a donation, you can do so on both,", 360 "settings.supportFerdi.textDonation": "If you feel like supporting Ferdi development with a donation, you can do so on both,",
363 "settings.supportFerdi.textDonationAnd": "and", 361 "settings.supportFerdi.textDonationAnd": "and",
364 "settings.supportFerdi.textExpenses": "While volunteers do most of the work, we still need to pay for servers and certificates. As a community, we are fully transparent on funds we collect and spend - see our", 362 "settings.supportFerdi.textExpenses": "While volunteers do most of the work, we still need to pay for servers and certificates. As a community, we are fully transparent on funds we collect and spend - see our",
@@ -369,7 +367,6 @@
369 "settings.supportFerdi.textSupportWelcome": "Support is always welcome. You can find a list of the help we need", 367 "settings.supportFerdi.textSupportWelcome": "Support is always welcome. You can find a list of the help we need",
370 "settings.supportFerdi.textSupportWelcomeHere": "here", 368 "settings.supportFerdi.textSupportWelcomeHere": "here",
371 "settings.supportFerdi.textVolunteers": "The development of Ferdi is done by volunteers. People who use Ferdi like you. They maintain, fix, and improve Ferdi in their spare time.", 369 "settings.supportFerdi.textVolunteers": "The development of Ferdi is done by volunteers. People who use Ferdi like you. They maintain, fix, and improve Ferdi in their spare time.",
372 "settings.supportFerdi.title": "Do you like Ferdi?",
373 "settings.team.contentHeadline": "Franz Team Management", 370 "settings.team.contentHeadline": "Franz Team Management",
374 "settings.team.copy": "Franz's Team Management allows you to manage Franz Subscriptions for multiple users. Please keep in mind that having a Franz Premium subscription will give you no advantages in using Ferdi: The only reason you still have access to Team Management is so you can manage your legacy Franz Teams and so that you don't loose any functionality in managing your account.", 371 "settings.team.copy": "Franz's Team Management allows you to manage Franz Subscriptions for multiple users. Please keep in mind that having a Franz Premium subscription will give you no advantages in using Ferdi: The only reason you still have access to Team Management is so you can manage your legacy Franz Teams and so that you don't loose any functionality in managing your account.",
375 "settings.team.headline": "Team", 372 "settings.team.headline": "Team",
@@ -458,4 +455,4 @@
458 "workspaceDrawer.workspaceFeatureInfo": "<p>Ferdi Workspaces let you focus on what’s important right now. Set up different sets of services and easily switch between them at any time.</p><p>You decide which services you need when and where, so we can help you stay on top of your game - or easily switch off from work whenever you want.</p>", 455 "workspaceDrawer.workspaceFeatureInfo": "<p>Ferdi Workspaces let you focus on what’s important right now. Set up different sets of services and easily switch between them at any time.</p><p>You decide which services you need when and where, so we can help you stay on top of your game - or easily switch off from work whenever you want.</p>",
459 "workspaceDrawer.workspacesSettingsTooltip": "Edit workspaces settings", 456 "workspaceDrawer.workspacesSettingsTooltip": "Edit workspaces settings",
460 "workspaces.switchingIndicator.switchingTo": "Switching to" 457 "workspaces.switchingIndicator.switchingTo": "Switching to"
461} 458} \ No newline at end of file