diff --git a/content-scripts/index.js b/content-scripts/index.js
index a5d1dd0..d701920 100644
--- a/content-scripts/index.js
+++ b/content-scripts/index.js
@@ -50,9 +50,9 @@ const functionsToExecute = [
{ name: "courseUnitPage", func: courseUnitPage },
{ name: "injectOverrideFunctions", func: injectOverrideFunctions },
{ name: "addStarIconToCard", func: addStarIconToCard },
+ { name: "componentsPage", func: createComponentsPage },
];
-
const init = async () => {
// Inject user preferences
const data = await getStorage(userPreferences);
diff --git a/content-scripts/pages/components_page.tsx b/content-scripts/pages/components_page.tsx
index c94db19..c79edd4 100644
--- a/content-scripts/pages/components_page.tsx
+++ b/content-scripts/pages/components_page.tsx
@@ -1,3 +1,4 @@
+// eslint-disable-next-line @typescript-eslint/no-unused-vars
import jsx from "texsaur";
import Button from "../components/Button";
import { Table } from "../components/Table";
@@ -6,51 +7,74 @@ import Icon from "../components/Icon";
const components = ["Icon", "Button", "Table"];
export function createComponentsPage() {
- if (!document.location.href.toLowerCase().includes("components")) {
- return;
- }
- document.body.innerHTML = "";
- document.title = "Components";
+ if (!document.location.href.toLowerCase().includes("components")) {
+ return;
+ }
+ document.body.innerHTML = "";
+ document.title = "Components";
- const sidebarItems = components.map((component) => (
-
-
These components were created by the NitSig team in order to use them across the Sigarra pages.
-If you find something in your Sigarra that would be interesting to change by one of the following components, send an email to ni@aefeup.pt.
-Interesting to see the extension code base? Check our open source GitHub Repository!
-+ These components were created by the NitSig team in + order to use them across the Sigarra pages. +
++ If you find something in your Sigarra that would be + interesting to change by one of the following + components, send an email to{" "} + ni@aefeup.pt. +
++ Interesting to see the extension code base? Check our + open source{" "} + + GitHub Repository + + ! +
+{description}
-{description}
+{code}
- {code} --