Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
SCHOUTER committed Jul 5, 2024
1 parent d4fb249 commit d961c0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/3_projects/6_imbit-n3xt/02_chatbase.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
id: chatbase
title: Chatbase
---
---
12 changes: 6 additions & 6 deletions docs/3_projects/6_imbit-n3xt/1_tinbit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
```

Expand Down
2 changes: 1 addition & 1 deletion docs/3_projects/6_imbit-n3xt/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit d961c0c

Please sign in to comment.