Skip to content

Commit 481c9d8

Browse files
fix(extension): settings-about swap Medium with Discord icons [LW-10180] (#1027)
* fix(extension): settings-about swap Medium with Discort icons * test(extension): update LW-2387 --------- Co-authored-by: wklos-iohk <wojciech.klos@iohk.io>
1 parent 0960c95 commit 481c9d8

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

apps/browser-extension-wallet/.env.defaults

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ CATALYST_GOOGLE_PLAY_URL=https://play.google.com/store/apps/details?id=io.iohk.v
3838
CATALYST_APP_STORE_URL=https://apps.apple.com/fr/app/catalyst-voting/id1517473397?l=en
3939
TWITTER_URL=https://twitter.com/lace_io
4040
YOUTUBE_URL=https://www.youtube.com/c/Laceio
41-
MEDIUM_URL=https://medium.com/@lace_wallet
4241
GITHUB_URL=https://github.com/input-output-hk
4342
DISCORD_URL=https://discord.gg/lacewallet
4443
WEBSITE_URL=https://www.lace.io

apps/browser-extension-wallet/.env.developerpreview

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ CATALYST_GOOGLE_PLAY_URL=https://play.google.com/store/apps/details?id=io.iohk.v
3838
CATALYST_APP_STORE_URL=https://apps.apple.com/fr/app/catalyst-voting/id1517473397?l=en
3939
TWITTER_URL=https://twitter.com/lace_io
4040
YOUTUBE_URL=https://www.youtube.com/c/Laceio
41-
MEDIUM_URL=https://medium.com/@lace_wallet
4241
GITHUB_URL=https://github.com/input-output-hk
4342
DISCORD_URL=https://discord.gg/lacewallet
4443
WEBSITE_URL=https://www.lace.io

apps/browser-extension-wallet/.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ CATALYST_GOOGLE_PLAY_URL=https://play.google.com/store/apps/details?id=io.iohk.v
3434
CATALYST_APP_STORE_URL=https://apps.apple.com/fr/app/catalyst-voting/id1517473397?l=en
3535
TWITTER_URL=https://twitter.com/lace_io
3636
YOUTUBE_URL=https://www.youtube.com/c/Laceio
37-
MEDIUM_URL=https://medium.com/@lace_wallet
3837
GITHUB_URL=https://github.com/input-output-hk
3938
DISCORD_URL=https://discord.gg/inputoutput
4039
WEBSITE_URL=https://www.lace.io
Lines changed: 3 additions & 0 deletions
Loading

apps/browser-extension-wallet/src/views/browser-view/components/SocialNetworks/SocialNetworkIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Telegram from '../../../../assets/icons/telegram-icon.component.svg';
99
import GitHub from '../../../../assets/icons/github-icon.component.svg';
1010
import Twitter from '../../../../assets/icons/twitter-icon.component.svg';
1111
import Youtube from '../../../../assets/icons/youtube-icon.component.svg';
12-
import Medium from '../../../../assets/icons/medium-icon.component.svg';
12+
import Discord from '../../../../assets/icons/discord-logo.component.svg';
1313

1414
const normalizeHref = (href: string) =>
1515
href && !href.startsWith('https://') ? `https://${href.replace(/^\/+/, '')}` : href;
@@ -22,7 +22,7 @@ export enum SocialNetwork {
2222
GITHUB,
2323
TWITTER,
2424
YOUTUBE,
25-
MEDIUM
25+
DISCORD
2626
}
2727

2828
export const iconsMap: Record<SocialNetwork, React.FC<React.SVGProps<SVGSVGElement>>> = {
@@ -33,7 +33,7 @@ export const iconsMap: Record<SocialNetwork, React.FC<React.SVGProps<SVGSVGEleme
3333
[SocialNetwork.GITHUB]: GitHub,
3434
[SocialNetwork.TWITTER]: Twitter,
3535
[SocialNetwork.YOUTUBE]: Youtube,
36-
[SocialNetwork.MEDIUM]: Medium
36+
[SocialNetwork.DISCORD]: Discord
3737
};
3838

3939
export type socialNetworkIconProps = {

apps/browser-extension-wallet/src/views/browser-view/features/settings/components/SettingsAbout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const socialNetworks = [
1313
{ name: SocialNetwork.WEBSITE, href: process.env.WEBSITE_URL },
1414
{ name: SocialNetwork.TWITTER, href: process.env.TWITTER_URL },
1515
{ name: SocialNetwork.YOUTUBE, href: process.env.YOUTUBE_URL },
16-
{ name: SocialNetwork.MEDIUM, href: process.env.MEDIUM_URL },
16+
{ name: SocialNetwork.DISCORD, href: process.env.DISCORD_URL },
1717
{ name: SocialNetwork.GITHUB, href: process.env.GITHUB_URL }
1818
];
1919

packages/e2e-tests/src/assert/settings/SettingsPageAssert.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ class SettingsPageAssert {
179179
await SettingsPage.aboutLaceWidget.twitter.icon.waitForDisplayed();
180180
await SettingsPage.aboutLaceWidget.youtube.element.waitForDisplayed();
181181
await SettingsPage.aboutLaceWidget.youtube.icon.waitForDisplayed();
182-
await SettingsPage.aboutLaceWidget.medium.element.waitForDisplayed();
183-
await SettingsPage.aboutLaceWidget.medium.icon.waitForDisplayed();
182+
await SettingsPage.aboutLaceWidget.discord.element.waitForDisplayed();
183+
await SettingsPage.aboutLaceWidget.discord.icon.waitForDisplayed();
184184
await SettingsPage.aboutLaceWidget.github.element.waitForDisplayed();
185185
await SettingsPage.aboutLaceWidget.github.icon.waitForDisplayed();
186186
}

packages/e2e-tests/src/elements/settings/extendedView/AboutLaceWidget.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class AboutLaceWidget {
5454
return new SocialComponentElement(SocialComponentEnum.Youtube);
5555
}
5656

57-
get medium() {
58-
return new SocialComponentElement(SocialComponentEnum.Medium);
57+
get discord() {
58+
return new SocialComponentElement(SocialComponentEnum.Discord);
5959
}
6060

6161
get github() {

packages/e2e-tests/src/elements/settings/extendedView/SocialComponentElement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export enum SocialComponentEnum {
77
Website = 'WEBSITE',
88
Github = 'GITHUB',
99
Youtube = 'YOUTUBE',
10-
Medium = 'MEDIUM'
10+
Discord = 'DISCORD'
1111
}
1212

1313
export class SocialComponentElement {

0 commit comments

Comments
 (0)