From d961c0cb6da13d8be82e79f72df909118a13a3b4 Mon Sep 17 00:00:00 2001 From: SCHOUTER Date: Fri, 5 Jul 2024 09:52:36 +0200 Subject: [PATCH] fix error --- docs/3_projects/6_imbit-n3xt/02_chatbase.mdx | 2 +- docs/3_projects/6_imbit-n3xt/1_tinbit.mdx | 12 ++++++------ docs/3_projects/6_imbit-n3xt/index.mdx | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/3_projects/6_imbit-n3xt/02_chatbase.mdx b/docs/3_projects/6_imbit-n3xt/02_chatbase.mdx index 86ee3cd..dc7de88 100644 --- a/docs/3_projects/6_imbit-n3xt/02_chatbase.mdx +++ b/docs/3_projects/6_imbit-n3xt/02_chatbase.mdx @@ -1,4 +1,4 @@ --- id: chatbase title: Chatbase ---- \ No newline at end of file +--- diff --git a/docs/3_projects/6_imbit-n3xt/1_tinbit.mdx b/docs/3_projects/6_imbit-n3xt/1_tinbit.mdx index 8dff5ce..b6356b5 100644 --- a/docs/3_projects/6_imbit-n3xt/1_tinbit.mdx +++ b/docs/3_projects/6_imbit-n3xt/1_tinbit.mdx @@ -20,12 +20,12 @@ that the cards do not get shuffled when remounting the TinBit components, just w ```js const shuffleArray = (array) => { - const shuffledArray = array.slice(); // Create a copy of the array - for (let i = shuffledArray.length - 1; i > 0; i--) { - const j = Math.floor(Math.random() * (i + 1)); - [shuffledArray[i], shuffledArray[j]] = [shuffledArray[j], shuffledArray[i]]; - } - return shuffledArray; + const shuffledArray = array.slice(); // Create a copy of the array + for (let i = shuffledArray.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + [shuffledArray[i], shuffledArray[j]] = [shuffledArray[j], shuffledArray[i]]; + } + return shuffledArray; }; ``` diff --git a/docs/3_projects/6_imbit-n3xt/index.mdx b/docs/3_projects/6_imbit-n3xt/index.mdx index 172228b..b657290 100644 --- a/docs/3_projects/6_imbit-n3xt/index.mdx +++ b/docs/3_projects/6_imbit-n3xt/index.mdx @@ -48,7 +48,7 @@ There are a few other important folders. `.ebextensions` contains the configurat ### Index -The `index.js` file sets up the application by configuring routing, internationalization, and essential components. It manages the application's main structure, including the translation functionality (`IntlProvider`), the routes for navigation (including routing to an Error 404/Not found page), and the main UI components like the `Navbar`, the `FaviconSwitcher`, the `ChatbotScript` (refer to the [Chatbot](./imbit-n3xt/Chatbot) section), and the `Footer`. +The `index.js` file sets up the application by configuring routing, internationalization, and essential components. It manages the application's main structure, including the translation functionality (`IntlProvider`), the routes for navigation (including routing to an Error 404/Not found page), and the main UI components like the `Navbar`, the `FaviconSwitcher`, the `ChatbotScript` (refer to the [Chatbot](./imbit-n3xt/Chatbase) section), and the `Footer`. It also sets up the basic `Helmet` functionality. Anything you want to load on absolutely **every page** should be included in this Helmet component in the index file.