From e8cc15da95285d661094db5fe4c305fc967c5d74 Mon Sep 17 00:00:00 2001 From: Aryan Singh Date: Sat, 21 Oct 2023 10:23:27 +0530 Subject: [PATCH] requested changes Signed-off-by: Aryan Singh --- components/tools/ToolDashboard.js | 1 + components/tools/ToolsList.js | 2 +- scripts/build-newsroom-videos.js | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/tools/ToolDashboard.js b/components/tools/ToolDashboard.js index ea6d8d975123..663d97890280 100644 --- a/components/tools/ToolDashboard.js +++ b/components/tools/ToolDashboard.js @@ -59,6 +59,7 @@ export default function ToolDashboard() { } }, 1000) }, []) + // useEffect function to enable the close Category dropdown Modal feature when clicked outside of the modal useEffect(() => { const checkIfClickOutside = (e) => { diff --git a/components/tools/ToolsList.js b/components/tools/ToolsList.js index e5c2226ce702..263265c02cb1 100644 --- a/components/tools/ToolsList.js +++ b/components/tools/ToolsList.js @@ -6,7 +6,7 @@ export default function toolsList({ toolsData }) {
{Object.keys(toolsData).map((categoryName, index) => { if(toolsData[categoryName].toolsList.length > 0) return ( -
+
{categoryName} diff --git a/scripts/build-newsroom-videos.js b/scripts/build-newsroom-videos.js index 583e4a310ab7..9f3e9fd36811 100644 --- a/scripts/build-newsroom-videos.js +++ b/scripts/build-newsroom-videos.js @@ -26,7 +26,6 @@ async function buildNewsroomVideos() { const videoData = JSON.stringify(videoDataItems, null, ' '); console.log('The following are the Newsroom Youtube videos: ', videoData) - try { writeFileSync( resolve(__dirname, '../config', 'newsroom_videos.json'),