-
{item.name}
+
{item.title}
@@ -111,40 +123,42 @@ const Showcase = ({ cases, loading, googleAnalytics }) => {
return (
-
-
-
-
-
-
-
- {loading ? (
- skeleton({ width: 'w-28', height: 'h-8' })
- ) : (
-
- My Showcases
-
- )}
-
-
-
-
- {loading || !cases ? renderSkeleton() : renderShowcases()}
+ {displaySection(externalProjects) && (
+
+
+
+
+
+
+
+ {loading ? (
+ skeleton({ width: 'w-28', height: 'h-8' })
+ ) : (
+
+ Other Projects
+
+ )}
+
+
+
+
+ {loading ? renderSkeleton() : renderExternalProjects()}
+
-
+ )}
);
};
-Showcase.propTypes = {
- cases: PropTypes.array,
+ExternalProject.propTypes = {
+ externalProjects: PropTypes.array,
loading: PropTypes.bool.isRequired,
googleAnalytics: PropTypes.object,
};
-export default Showcase;
+export default ExternalProject;
diff --git a/src/helpers/utils.jsx b/src/helpers/utils.jsx
index 838a1ef..7a3c22d 100644
--- a/src/helpers/utils.jsx
+++ b/src/helpers/utils.jsx
@@ -162,7 +162,7 @@ export const sanitizeConfig = (config) => {
fileUrl: config?.resume?.fileUrl || '',
},
skills: config?.skills || [],
- showcases: config?.showcases || [],
+ externalProjects: config?.externalProjects || [],
experiences: config?.experiences || [],
certifications: config?.certifications || [],
education: config?.education || [],
diff --git a/types/index.d.ts b/types/index.d.ts
index ab43d60..d082fee 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -221,8 +221,8 @@ export interface Certifications {
link?: string;
}
-export interface Showcase {
- name?: string;
+export interface ExternalProjects {
+ title?: string;
description?: string;
imageUrl?: string;
link?: string;
@@ -266,9 +266,9 @@ export interface Config {
experiences?: Array
;
/**
- * Showcase list
+ * External Projects
*/
- showcases?: Array;
+ externalProjects?: Array;
/**
* Certifications list