Date: Fri, 23 Feb 2024 12:06:16 +0300
Subject: [PATCH 15/22] Reduce graphql API calls
---
.../lib/ecosystem/ecosystem/processData.js | 8 +-
.../src/lib/ecosystem/github/index.js | 8 +-
.../src/lib/ecosystem/github/processData.js | 104 ++++++++++++------
3 files changed, 83 insertions(+), 37 deletions(-)
diff --git a/apps/charterafrica/src/lib/ecosystem/ecosystem/processData.js b/apps/charterafrica/src/lib/ecosystem/ecosystem/processData.js
index 14a3595c1..39d1d9473 100644
--- a/apps/charterafrica/src/lib/ecosystem/ecosystem/processData.js
+++ b/apps/charterafrica/src/lib/ecosystem/ecosystem/processData.js
@@ -65,13 +65,15 @@ export async function prepareTools(airtableData, config) {
return Promise.allSettled(toProcess);
}
-export async function updateContributor(forceUpdate) {
+export async function updateContributor() {
const { docs } = await api.getCollection(CONTRIBUTORS_COLLECTION, {
pagination: false,
});
+ const githubContributors = await github.bulkFetchContributors(
+ docs.map(({ externalId }) => externalId),
+ );
const updatePromises = docs.map(async (item) => {
- const itemToFetch = forceUpdate ? { ...item, eTag: null } : item;
- const updated = await github.fetchContributor(itemToFetch);
+ const updated = githubContributors[item.externalId];
return api.updateCollection(CONTRIBUTORS_COLLECTION, item.id, updated);
});
return Promise.allSettled(updatePromises);
diff --git a/apps/charterafrica/src/lib/ecosystem/github/index.js b/apps/charterafrica/src/lib/ecosystem/github/index.js
index a07565e17..db76597f0 100644
--- a/apps/charterafrica/src/lib/ecosystem/github/index.js
+++ b/apps/charterafrica/src/lib/ecosystem/github/index.js
@@ -1,7 +1,11 @@
-import { fetchTool, fetchOrganisation, fetchContributor } from "./processData";
+import {
+ bulkFetchContributors,
+ fetchTool,
+ fetchOrganisation,
+} from "./processData";
export default {
fetchTool,
fetchOrganisation,
- fetchContributor,
+ bulkFetchContributors,
};
diff --git a/apps/charterafrica/src/lib/ecosystem/github/processData.js b/apps/charterafrica/src/lib/ecosystem/github/processData.js
index f0725f138..4514fb749 100644
--- a/apps/charterafrica/src/lib/ecosystem/github/processData.js
+++ b/apps/charterafrica/src/lib/ecosystem/github/processData.js
@@ -46,31 +46,30 @@ const GET_REPOSITORY = `query($repositoryOwner: String!, $repositoryName: String
}
}`;
-const GET_USER = `query($username: String!) {
- user(login: $username) {
- name
- avatarUrl
- url
- email
- location
- login
- websiteUrl
- repositories(first: 3, orderBy: {field: STARGAZERS, direction: DESC}) {
- edges {
- node {
- name
- description
- stargazers {
- totalCount
- }
- visibility
- url
- updatedAt
- languages(first:5) {
- edges {
- node {
- name
- }
+function createUserQuery(username) {
+ return `user(login: $${username}) {
+ name
+ avatarUrl
+ url
+ email
+ location
+ login
+ websiteUrl
+ repositories(first: 3, orderBy: {field: STARGAZERS, direction: DESC}) {
+ edges {
+ node {
+ name
+ description
+ stargazers {
+ totalCount
+ }
+ visibility
+ url
+ updatedAt
+ languages(first:5) {
+ edges {
+ node {
+ name
}
}
}
@@ -78,6 +77,10 @@ const GET_USER = `query($username: String!) {
}
}
}`;
+}
+const GET_USER = `query($username: String!) {
+ ${createUserQuery("username")}
+}`;
export async function fetchTool({ externalId }) {
let [repositoryOwner, repositoryName] = externalId
@@ -136,13 +139,12 @@ export async function fetchOrganisation({ externalId, eTag }) {
};
}
-export async function fetchContributor({ externalId }) {
- const data = await github.graphQuery(GET_USER, {
- username: externalId,
- });
- const {
- user: { name, avatarUrl, url, email, location, websiteUrl, repositories },
- } = data;
+function processGithubContributor(data) {
+ if (!data) {
+ return null;
+ }
+ const { name, avatarUrl, url, email, location, websiteUrl, repositories } =
+ data;
const repos = repositories?.edges?.map((edge) => {
const {
@@ -180,3 +182,41 @@ export async function fetchContributor({ externalId }) {
repositories: repos,
};
}
+export async function fetchContributor({ externalId }) {
+ const data = await github.graphQuery(GET_USER, {
+ username: externalId,
+ });
+ return processGithubContributor(data.user);
+}
+
+function chunkArray(array, chunkSize) {
+ return Array.from(
+ { length: Math.ceil(array.length / chunkSize) },
+ (_, index) => array.slice(index * chunkSize, (index + 1) * chunkSize),
+ );
+}
+
+export async function bulkFetchContributors(externalIds) {
+ const contributors = {};
+ const chunkedArrays = chunkArray(externalIds, 80);
+ const promises = chunkedArrays.map(async (arr) => {
+ const variables = arr.reduce((acc, currentValue) => {
+ acc[currentValue?.replaceAll("-", "_")] = currentValue;
+ return acc;
+ }, {});
+ const sanitizedIds = Object.keys(variables);
+ let query = `query($${sanitizedIds.join(" : String!, $")} : String!){`;
+ sanitizedIds.forEach((id) => {
+ query += `\n${id}: ${createUserQuery(id)}`;
+ });
+ query += "\n}";
+ const data = await github.graphQuery(query, variables);
+ Object.keys(data || {}).forEach((externalId) => {
+ contributors[variables[externalId]] = processGithubContributor(
+ data[externalId],
+ );
+ });
+ });
+ await Promise.allSettled(promises);
+ return contributors;
+}
From ed47037ee0b8a94543160f573a528c1368ff7f1c Mon Sep 17 00:00:00 2001
From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
Date: Fri, 23 Feb 2024 14:21:26 +0300
Subject: [PATCH 16/22] Small fix
---
.../src/components/Dataset/Dataset.js | 5 --
.../src/lib/ecosystem/github/processData.js | 64 +++++++++++--------
2 files changed, 37 insertions(+), 32 deletions(-)
diff --git a/apps/charterafrica/src/components/Dataset/Dataset.js b/apps/charterafrica/src/components/Dataset/Dataset.js
index b8310045a..64d5e4d1d 100644
--- a/apps/charterafrica/src/components/Dataset/Dataset.js
+++ b/apps/charterafrica/src/components/Dataset/Dataset.js
@@ -130,11 +130,6 @@ function Dataset({
href={url}
target="_blank"
sx={{
- // width: {
- // xs: "100%",
- // sm: "200px",
- // },
- // height: "50px",
mt: 4,
}}
>
diff --git a/apps/charterafrica/src/lib/ecosystem/github/processData.js b/apps/charterafrica/src/lib/ecosystem/github/processData.js
index 4514fb749..000299153 100644
--- a/apps/charterafrica/src/lib/ecosystem/github/processData.js
+++ b/apps/charterafrica/src/lib/ecosystem/github/processData.js
@@ -46,7 +46,7 @@ const GET_REPOSITORY = `query($repositoryOwner: String!, $repositoryName: String
}
}`;
-function createUserQuery(username) {
+function fetchUserQuery(username) {
return `user(login: $${username}) {
name
avatarUrl
@@ -78,9 +78,6 @@ function createUserQuery(username) {
}
}`;
}
-const GET_USER = `query($username: String!) {
- ${createUserQuery("username")}
-}`;
export async function fetchTool({ externalId }) {
let [repositoryOwner, repositoryName] = externalId
@@ -182,12 +179,6 @@ function processGithubContributor(data) {
repositories: repos,
};
}
-export async function fetchContributor({ externalId }) {
- const data = await github.graphQuery(GET_USER, {
- username: externalId,
- });
- return processGithubContributor(data.user);
-}
function chunkArray(array, chunkSize) {
return Array.from(
@@ -196,26 +187,45 @@ function chunkArray(array, chunkSize) {
);
}
+function constructGraphQLQuery(ids) {
+ const queryParts = ids.map((id) => {
+ const queryPart = fetchUserQuery(id);
+ return `${id}: ${queryPart}`;
+ });
+ return `query(${ids
+ .map((id) => `$${id}: String!`)
+ .join(", ")}){\n${queryParts.join("\n")}\n}`;
+}
+
+async function fetchContributorsData(users) {
+ const variables = users.reduce((acc, id) => {
+ const sanitizedId = id.replaceAll("-", "_");
+ acc[sanitizedId] = id;
+ return acc;
+ }, {});
+
+ const query = constructGraphQLQuery(Object.keys(variables));
+ const data = await github.graphQuery(query, variables);
+
+ return Object.keys(data || {}).reduce((acc, key) => {
+ acc[variables[key]] = processGithubContributor(data[key]);
+ return acc;
+ }, {});
+}
+
+const USER_QUERY_LIMIT = 80;
+
export async function bulkFetchContributors(externalIds) {
const contributors = {};
- const chunkedArrays = chunkArray(externalIds, 80);
+ const chunkedArrays = chunkArray(externalIds, USER_QUERY_LIMIT);
+
const promises = chunkedArrays.map(async (arr) => {
- const variables = arr.reduce((acc, currentValue) => {
- acc[currentValue?.replaceAll("-", "_")] = currentValue;
- return acc;
- }, {});
- const sanitizedIds = Object.keys(variables);
- let query = `query($${sanitizedIds.join(" : String!, $")} : String!){`;
- sanitizedIds.forEach((id) => {
- query += `\n${id}: ${createUserQuery(id)}`;
- });
- query += "\n}";
- const data = await github.graphQuery(query, variables);
- Object.keys(data || {}).forEach((externalId) => {
- contributors[variables[externalId]] = processGithubContributor(
- data[externalId],
- );
- });
+ try {
+ const data = await fetchContributorsData(arr);
+ Object.assign(contributors, data);
+ } catch (error) {
+ Sentry.captureMessage(error.message);
+ }
});
await Promise.allSettled(promises);
return contributors;
From ce5ab7ddbc5f95692408df64cc5d542a36bf47c7 Mon Sep 17 00:00:00 2001
From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
Date: Fri, 23 Feb 2024 16:39:34 +0300
Subject: [PATCH 17/22] Rename icons
---
...scord 1.svg => Type=discord, Size=25, Color=Black.svg} | 0
...gram 1.svg => Type=telegram, Size=25, Color=Black.svg} | 0
...tiktok 1.svg => Type=tiktok, Size=25, Color=Black.svg} | 0
...sapp 1.svg => Type=whatsapp, Size=25, Color=Black.svg} | 0
apps/charterafrica/src/components/Entity/Entity.js | 8 ++++----
5 files changed, 4 insertions(+), 4 deletions(-)
rename apps/charterafrica/src/assets/icons/{Property 1=icons8-discord 1.svg => Type=discord, Size=25, Color=Black.svg} (100%)
rename apps/charterafrica/src/assets/icons/{Property 1=icons8-telegram 1.svg => Type=telegram, Size=25, Color=Black.svg} (100%)
rename apps/charterafrica/src/assets/icons/{Property 1=icons8-tiktok 1.svg => Type=tiktok, Size=25, Color=Black.svg} (100%)
rename apps/charterafrica/src/assets/icons/{Property 1=icons8-whatsapp 1.svg => Type=whatsapp, Size=25, Color=Black.svg} (100%)
diff --git a/apps/charterafrica/src/assets/icons/Property 1=icons8-discord 1.svg b/apps/charterafrica/src/assets/icons/Type=discord, Size=25, Color=Black.svg
similarity index 100%
rename from apps/charterafrica/src/assets/icons/Property 1=icons8-discord 1.svg
rename to apps/charterafrica/src/assets/icons/Type=discord, Size=25, Color=Black.svg
diff --git a/apps/charterafrica/src/assets/icons/Property 1=icons8-telegram 1.svg b/apps/charterafrica/src/assets/icons/Type=telegram, Size=25, Color=Black.svg
similarity index 100%
rename from apps/charterafrica/src/assets/icons/Property 1=icons8-telegram 1.svg
rename to apps/charterafrica/src/assets/icons/Type=telegram, Size=25, Color=Black.svg
diff --git a/apps/charterafrica/src/assets/icons/Property 1=icons8-tiktok 1.svg b/apps/charterafrica/src/assets/icons/Type=tiktok, Size=25, Color=Black.svg
similarity index 100%
rename from apps/charterafrica/src/assets/icons/Property 1=icons8-tiktok 1.svg
rename to apps/charterafrica/src/assets/icons/Type=tiktok, Size=25, Color=Black.svg
diff --git a/apps/charterafrica/src/assets/icons/Property 1=icons8-whatsapp 1.svg b/apps/charterafrica/src/assets/icons/Type=whatsapp, Size=25, Color=Black.svg
similarity index 100%
rename from apps/charterafrica/src/assets/icons/Property 1=icons8-whatsapp 1.svg
rename to apps/charterafrica/src/assets/icons/Type=whatsapp, Size=25, Color=Black.svg
diff --git a/apps/charterafrica/src/components/Entity/Entity.js b/apps/charterafrica/src/components/Entity/Entity.js
index 32ba2663e..4490f34f2 100644
--- a/apps/charterafrica/src/components/Entity/Entity.js
+++ b/apps/charterafrica/src/components/Entity/Entity.js
@@ -4,17 +4,17 @@ import { Grid, SvgIcon, Box, Container } from "@mui/material";
import PropTypes from "prop-types";
import React from "react";
-import DiscordIcon from "@/charterafrica/assets/icons/Property 1=icons8-discord 1.svg";
-import TelegramIcon from "@/charterafrica/assets/icons/Property 1=icons8-telegram 1.svg";
-import TikTokIcon from "@/charterafrica/assets/icons/Property 1=icons8-tiktok 1.svg";
-import WhatsAppIcon from "@/charterafrica/assets/icons/Property 1=icons8-whatsapp 1.svg";
+import DiscordIcon from "@/charterafrica/assets/icons/Type=discord, Size=25, Color=Black.svg";
import FacebookIcon from "@/charterafrica/assets/icons/Type=facebook, Size=24, Color=CurrentColor.svg";
import GithubIcon from "@/charterafrica/assets/icons/Type=github, Size=24, Color=CurrentColor.svg";
import InstagramIcon from "@/charterafrica/assets/icons/Type=instagram, Size=24, Color=Black.svg";
import LinkedInIcon from "@/charterafrica/assets/icons/Type=linkedin, Size=24, Color=CurrentColor.svg";
import EmailIcon from "@/charterafrica/assets/icons/Type=mail, Size=24, Color=CurrentColor.svg";
import SlackIcon from "@/charterafrica/assets/icons/Type=slack, Size=24, Color=CurrentColor.svg";
+import TelegramIcon from "@/charterafrica/assets/icons/Type=telegram, Size=25, Color=Black.svg";
+import TikTokIcon from "@/charterafrica/assets/icons/Type=tiktok, Size=25, Color=Black.svg";
import TwitterIcon from "@/charterafrica/assets/icons/Type=twitter, Size=24, Color=CurrentColor.svg";
+import WhatsAppIcon from "@/charterafrica/assets/icons/Type=whatsapp, Size=25, Color=Black.svg";
import YouTubeIcon from "@/charterafrica/assets/icons/Type=youtube, Size=24, Color=Black.svg";
import { OrganisationImageLink } from "@/charterafrica/components/OrganisationCard";
import RepositoryCard from "@/charterafrica/components/RepositoryCard";
From 83680acabc9de20a48e2a5ca1654277d91a97421 Mon Sep 17 00:00:00 2001
From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
Date: Fri, 23 Feb 2024 17:03:52 +0300
Subject: [PATCH 18/22] Add svg viewbox
Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
---
apps/charterafrica/src/components/Entity/Entity.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/apps/charterafrica/src/components/Entity/Entity.js b/apps/charterafrica/src/components/Entity/Entity.js
index 4490f34f2..ccab3dd85 100644
--- a/apps/charterafrica/src/components/Entity/Entity.js
+++ b/apps/charterafrica/src/components/Entity/Entity.js
@@ -67,6 +67,7 @@ const SocialMediaLink = React.forwardRef(function SocialMediaLink(props, ref) {
Date: Mon, 26 Feb 2024 16:51:59 +0300
Subject: [PATCH 19/22] Rename RepositoryCard to Repository
Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
---
apps/charterafrica/src/components/Entity/Entity.js | 4 ++--
.../RepositoryCard.js => Repository/Repository.js} | 4 ++--
.../Repository.snap.js} | 0
.../Repository.test.js} | 6 +++---
apps/charterafrica/src/components/Repository/index.js | 3 +++
apps/charterafrica/src/components/RepositoryCard/index.js | 3 ---
6 files changed, 10 insertions(+), 10 deletions(-)
rename apps/charterafrica/src/components/{RepositoryCard/RepositoryCard.js => Repository/Repository.js} (94%)
rename apps/charterafrica/src/components/{RepositoryCard/RepositoryCard.snap.js => Repository/Repository.snap.js} (100%)
rename apps/charterafrica/src/components/{RepositoryCard/RepositoryCard.test.js => Repository/Repository.test.js} (78%)
create mode 100644 apps/charterafrica/src/components/Repository/index.js
delete mode 100644 apps/charterafrica/src/components/RepositoryCard/index.js
diff --git a/apps/charterafrica/src/components/Entity/Entity.js b/apps/charterafrica/src/components/Entity/Entity.js
index ccab3dd85..e52b22533 100644
--- a/apps/charterafrica/src/components/Entity/Entity.js
+++ b/apps/charterafrica/src/components/Entity/Entity.js
@@ -17,7 +17,7 @@ import TwitterIcon from "@/charterafrica/assets/icons/Type=twitter, Size=24, Col
import WhatsAppIcon from "@/charterafrica/assets/icons/Type=whatsapp, Size=25, Color=Black.svg";
import YouTubeIcon from "@/charterafrica/assets/icons/Type=youtube, Size=24, Color=Black.svg";
import { OrganisationImageLink } from "@/charterafrica/components/OrganisationCard";
-import RepositoryCard from "@/charterafrica/components/RepositoryCard";
+import Repository from "@/charterafrica/components/Repository";
import ToolCard from "@/charterafrica/components/ToolCard";
function getIcons({ socialMedia, email, github }) {
@@ -228,7 +228,7 @@ const Entity = React.forwardRef(function Entity(props, ref) {
{repositories.map((repo) => (
-
+
))}
diff --git a/apps/charterafrica/src/components/RepositoryCard/RepositoryCard.js b/apps/charterafrica/src/components/Repository/Repository.js
similarity index 94%
rename from apps/charterafrica/src/components/RepositoryCard/RepositoryCard.js
rename to apps/charterafrica/src/components/Repository/Repository.js
index 73a17f941..9606b774e 100644
--- a/apps/charterafrica/src/components/RepositoryCard/RepositoryCard.js
+++ b/apps/charterafrica/src/components/Repository/Repository.js
@@ -7,7 +7,7 @@ import StarIcon from "@/charterafrica/assets/icons/Type=Star, Size=24, Color=Cur
import { neutral } from "@/charterafrica/colors";
import formatDateTime from "@/charterafrica/utils/formatDate";
-const RepositoryCard = React.forwardRef(function Tools(props, ref) {
+const Repository = React.forwardRef(function Tools(props, ref) {
const {
name,
stargazers,
@@ -69,4 +69,4 @@ const RepositoryCard = React.forwardRef(function Tools(props, ref) {
);
});
-export default RepositoryCard;
+export default Repository;
diff --git a/apps/charterafrica/src/components/RepositoryCard/RepositoryCard.snap.js b/apps/charterafrica/src/components/Repository/Repository.snap.js
similarity index 100%
rename from apps/charterafrica/src/components/RepositoryCard/RepositoryCard.snap.js
rename to apps/charterafrica/src/components/Repository/Repository.snap.js
diff --git a/apps/charterafrica/src/components/RepositoryCard/RepositoryCard.test.js b/apps/charterafrica/src/components/Repository/Repository.test.js
similarity index 78%
rename from apps/charterafrica/src/components/RepositoryCard/RepositoryCard.test.js
rename to apps/charterafrica/src/components/Repository/Repository.test.js
index ef3bb966f..38010a89b 100644
--- a/apps/charterafrica/src/components/RepositoryCard/RepositoryCard.test.js
+++ b/apps/charterafrica/src/components/Repository/Repository.test.js
@@ -1,7 +1,7 @@
import { createRender } from "@commons-ui/testing-library";
import React from "react";
-import RepositoryCard from "./RepositoryCard";
+import Repository from "./Repository";
import theme from "@/charterafrica/theme";
@@ -19,9 +19,9 @@ const defaultProps = {
techSkills: "React, Next.js, TypeScript",
};
-describe("", () => {
+describe("", () => {
it("renders unchanged", () => {
- const { container } = render();
+ const { container } = render();
expect(container).toMatchSnapshot();
});
});
diff --git a/apps/charterafrica/src/components/Repository/index.js b/apps/charterafrica/src/components/Repository/index.js
new file mode 100644
index 000000000..ca287922a
--- /dev/null
+++ b/apps/charterafrica/src/components/Repository/index.js
@@ -0,0 +1,3 @@
+import Repository from "./Repository";
+
+export default Repository;
diff --git a/apps/charterafrica/src/components/RepositoryCard/index.js b/apps/charterafrica/src/components/RepositoryCard/index.js
deleted file mode 100644
index 5a53c0eaf..000000000
--- a/apps/charterafrica/src/components/RepositoryCard/index.js
+++ /dev/null
@@ -1,3 +0,0 @@
-import RepositoryCard from "./RepositoryCard";
-
-export default RepositoryCard;
From 1d63200b5be92626028aa0dd538476090ab2fde1 Mon Sep 17 00:00:00 2001
From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
Date: Mon, 26 Feb 2024 17:02:04 +0300
Subject: [PATCH 20/22] Fix Flourish charts
Signed-off-by: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
---
.../src/components/FlourishChart/FlourishChart.js | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/apps/charterafrica/src/components/FlourishChart/FlourishChart.js b/apps/charterafrica/src/components/FlourishChart/FlourishChart.js
index 482b5f9d0..e314266b5 100644
--- a/apps/charterafrica/src/components/FlourishChart/FlourishChart.js
+++ b/apps/charterafrica/src/components/FlourishChart/FlourishChart.js
@@ -9,14 +9,9 @@ const FlourishChart = React.forwardRef(function FlourishChart(props, ref) {
useEffect(() => {
const handleMessageEvent = (event) => {
- try {
- const { sender, context, ...message } = JSON.parse(event.data) || {};
- if (sender === "Flourish" && context === "iframe.resize") {
- return setHeight(Math.ceil(message.height));
- }
- return null;
- } catch (error) {
- return null;
+ const { sender, context, ...message } = JSON.parse(event.data) || {};
+ if (sender === "Flourish" && context === "iframe.resize") {
+ setHeight(Math.ceil(message.height));
}
};
window.addEventListener("message", handleMessageEvent);
From be04f53982f8a3bf6ef1cf50a29405bd9689ae19 Mon Sep 17 00:00:00 2001
From: Kipruto <43873157+kelvinkipruto@users.noreply.github.com>
Date: Mon, 26 Feb 2024 17:11:09 +0300
Subject: [PATCH 21/22] Regenerate snapshots
---
apps/charterafrica/src/components/Repository/Repository.snap.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/charterafrica/src/components/Repository/Repository.snap.js b/apps/charterafrica/src/components/Repository/Repository.snap.js
index c1000463c..1aadefc2d 100644
--- a/apps/charterafrica/src/components/Repository/Repository.snap.js
+++ b/apps/charterafrica/src/components/Repository/Repository.snap.js
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[` renders unchanged 1`] = `
+exports[` renders unchanged 1`] = `
Date: Mon, 26 Feb 2024 17:37:29 +0300
Subject: [PATCH 22/22] FIx icon sizes
---
apps/charterafrica/src/components/Entity/Entity.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/apps/charterafrica/src/components/Entity/Entity.js b/apps/charterafrica/src/components/Entity/Entity.js
index e52b22533..30d307ff7 100644
--- a/apps/charterafrica/src/components/Entity/Entity.js
+++ b/apps/charterafrica/src/components/Entity/Entity.js
@@ -56,6 +56,7 @@ const SocialMediaLink = React.forwardRef(function SocialMediaLink(props, ref) {
instagram: InstagramIcon,
youtube: YouTubeIcon,
};
+ const largeIconSizes = ["discord", "telegram", "whatsapp"];
return href && icons[variant] ? (