Skip to content
Open
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
12 changes: 6 additions & 6 deletions client/components/contact-box/__snapshots__/contact.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ exports[`<Contact /> rendering with placeholder translation tags should render t
>
<a
className="link "
href="https://twitter.com/openwisp"
href="https://x.com/openwisp"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="twitter"
alt="x"
className="contact-image "
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
</a>
<a
Expand Down Expand Up @@ -115,14 +115,14 @@ exports[`<Status /> rendering should render correctly 1`] = `
>
<a
className="link "
href="https://twitter.com/openwisp"
href="https://x.com/openwisp"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="twitter"
alt="x"
className="contact-image "
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
</a>
<a
Expand Down
20 changes: 10 additions & 10 deletions client/components/contact-box/contact.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {shallow} from "enzyme";
import { shallow } from "enzyme";
import React from "react";
import ShallowRenderer from "react-test-renderer/shallow";

Expand All @@ -12,21 +12,21 @@ jest.mock("../../utils/load-translation");
const defaultConfig = getConfig("default", true);
const links = [
{
alt: {en: "twitter"},
icon: "twiter.svg",
url: "https://twitter.com/openwisp",
alt: { en: "x" },
icon: "x.svg",
url: "https://x.com/openwisp",
authenticated: true,
css: "twitter",
css: "x",
},
{
alt: {en: "facebook"},
alt: { en: "facebook" },
icon: "facebook.svg",
url: "https://facebook.com/openwisp",
authenticated: false,
css: "facebook",
},
{
alt: {en: "google"},
alt: { en: "google" },
icon: "google.svg",
url: "https://google.com/openwisp",
css: "google",
Expand All @@ -36,7 +36,7 @@ const createTestProps = (props) => ({
language: "en",
orgSlug: "default",
contactPage: defaultConfig.components.contact_page,
userData: {is_verified: true},
userData: { is_verified: true },
...props,
});

Expand Down Expand Up @@ -69,7 +69,7 @@ describe("<Status /> rendering", () => {
expect(wrapper.find(".contact-image")).toHaveLength(2);
expect(wrapper.find(".link.google")).toHaveLength(1);
expect(wrapper.find(".link.facebook")).toHaveLength(1);
expect(wrapper.find(".link.twitter")).toHaveLength(0);
expect(wrapper.find(".link.x")).toHaveLength(0);
});

it("should render with authenticated links when authenticated", () => {
Expand All @@ -79,7 +79,7 @@ describe("<Status /> rendering", () => {
const wrapper = shallow(<Contact {...props} />);
expect(wrapper.find(".contact-image")).toHaveLength(2);
expect(wrapper.find(".link.google")).toHaveLength(1);
expect(wrapper.find(".link.twitter")).toHaveLength(1);
expect(wrapper.find(".link.x")).toHaveLength(1);
expect(wrapper.find(".link.facebook")).toHaveLength(0);
});
});
38 changes: 19 additions & 19 deletions client/components/login/__snapshots__/login.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ exports[`<Login /> interactions phone_number field should be present if mobile p
<p>
<a
class="social-link button full"
href="#twitter"
href="#x"
rel="noopener noreferrer"
>
<span
Expand All @@ -73,7 +73,7 @@ exports[`<Login /> interactions phone_number field should be present if mobile p
<img
alt="Login with X"
class="icon"
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
<span
class="text"
Expand Down Expand Up @@ -275,14 +275,14 @@ exports[`<Login /> interactions phone_number field should be present if mobile p
>
<a
class="link "
href="https://twitter.com/openwisp"
href="https://x.com/openwisp"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="twitter"
alt="x"
class="contact-image "
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
</a>
<a
Expand Down Expand Up @@ -368,7 +368,7 @@ exports[`<Login /> interactions should not show phone_number field if auto_switc
<p>
<a
class="social-link button full"
href="#twitter"
href="#x"
rel="noopener noreferrer"
>
<span
Expand All @@ -377,7 +377,7 @@ exports[`<Login /> interactions should not show phone_number field if auto_switc
<img
alt="Login with X"
class="icon"
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
<span
class="text"
Expand Down Expand Up @@ -553,14 +553,14 @@ exports[`<Login /> interactions should not show phone_number field if auto_switc
>
<a
class="link "
href="https://twitter.com/openwisp"
href="https://x.com/openwisp"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="twitter"
alt="x"
class="contact-image "
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
</a>
<a
Expand Down Expand Up @@ -646,7 +646,7 @@ exports[`<Login /> interactions username should be text field if mobile phone ve
<p>
<a
class="social-link button full"
href="#twitter"
href="#x"
rel="noopener noreferrer"
>
<span
Expand All @@ -655,7 +655,7 @@ exports[`<Login /> interactions username should be text field if mobile phone ve
<img
alt="Login with X"
class="icon"
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
<span
class="text"
Expand Down Expand Up @@ -831,14 +831,14 @@ exports[`<Login /> interactions username should be text field if mobile phone ve
>
<a
class="link "
href="https://twitter.com/openwisp"
href="https://x.com/openwisp"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="twitter"
alt="x"
class="contact-image "
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
</a>
<a
Expand Down Expand Up @@ -1171,7 +1171,7 @@ exports[`<Login /> rendering should render correctly without social links 1`] =
<p>
<a
className="social-link button full"
href="#twitter"
href="#x"
rel="noopener noreferrer"
>
<span
Expand All @@ -1180,7 +1180,7 @@ exports[`<Login /> rendering should render correctly without social links 1`] =
<img
alt="Login with X"
className="icon"
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
<span
className="text"
Expand Down Expand Up @@ -1423,7 +1423,7 @@ exports[`<Login /> rendering with placeholder translation tags should render tra
<p>
<a
className="social-link button full"
href="#twitter"
href="#x"
rel="noopener noreferrer"
>
<span
Expand All @@ -1432,7 +1432,7 @@ exports[`<Login /> rendering with placeholder translation tags should render tra
<img
alt="Login with X"
className="icon"
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
<span
className="text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ exports[`Change Phone Number: standard flow should render successfully 1`] = `
"helpdesk": "+789 948 564",
"social_links": [
{
"alt": "twitter",
"icon": "twitter.svg",
"url": "https://twitter.com/openwisp",
"alt": "x",
"icon": "x.svg",
"url": "https://x.com/openwisp",
},
{
"alt": "facebook",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ exports[`<PasswordConfirm /> rendering should render correctly 1`] = `
>
<a
className="link "
href="https://twitter.com/openwisp"
href="https://x.com/openwisp"
rel="noopener noreferrer"
target="_blank"
>
<img
alt="twitter"
alt="x"
className="contact-image "
src="/assets/default/twitter.svg"
src="/assets/default/x.svg"
/>
</a>
<a
Expand Down
6 changes: 3 additions & 3 deletions client/test-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@
"helpdesk": "+789 948 564",
"social_links": [
{
"alt": "twitter",
"icon": "twitter.svg",
"url": "https://twitter.com/openwisp"
"alt": "x",
"icon": "x.svg",
"url": "https://x.com/openwisp"
},
{
"alt": "facebook",
Expand Down
10 changes: 5 additions & 5 deletions organizations/default/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ client:
helpdesk: "+789 948 564"
social_links:
- alt:
en: "twitter"
icon: "twitter.svg"
url: "https://twitter.com/openwisp"
en: "x"
icon: "x.svg"
url: "https://x.com/openwisp"
Comment thread
Ayush4958 marked this conversation as resolved.
- alt:
en: "facebook"
icon: "facebook.svg"
Expand All @@ -161,8 +161,8 @@ client:
url: "#google"
- text:
en: "Login with X"
icon: "twitter.svg"
url: "#twitter"
icon: "x.svg"
url: "#x"
input_fields:
username:
type: "email"
Expand Down
Loading