@@ -61,7 +73,7 @@ export default function ListBox({
`my-0.5 relative cursor-default select-none py-2 pl-10 pr-4 rounded-md ${
selected ? "bg-white/10 text-gray-400 font-bold" : ""
} ${
- active & !selected
+ active && !selected
? "bg-white/5 text-mineshaft-200 cursor-pointer"
: "text-gray-400"
} `
diff --git a/frontend/components/basic/buttons/Button.tsx b/frontend/components/basic/buttons/Button.tsx
index c0db709c1e..40251be932 100644
--- a/frontend/components/basic/buttons/Button.tsx
+++ b/frontend/components/basic/buttons/Button.tsx
@@ -1,7 +1,7 @@
import React from "react";
import Image from "next/image";
import { IconProp } from "@fortawesome/fontawesome-svg-core";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { FontAwesomeIcon, FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
var classNames = require("classnames");
@@ -17,6 +17,20 @@ type ButtonProps = {
textDisabled: string;
}
+/**
+ * This is the main butto component in the app.
+ * @param {object} props
+ * @param {string} props.text - text inside the button
+ * @param {function} props.onButtonPressed - the action that happens when the button is clicked
+ * @param {boolean} props.loading - if a button is currently in the laoding state
+ * @param {string} props.color - button color
+ * @param {string} props.size - button size
+ * @param {FontAwesomeIconProps} props.icon - the icon inside the button
+ * @param {boolean} props.active - if the button is active or disabled
+ * @param {FontAwesomeIconProps} props.text - the icon inside the button when it is disabled
+ * @param {string} props.textDisable - text inside the button when it is disabled
+ * @returns
+ */
export default function Button (props: ButtonProps): JSX.Element {
// Check if the button show always be 'active' - then true;
// or if it should switch between 'active' and 'disabled' - then give the status
diff --git a/frontend/public/images/blog1.png b/frontend/public/images/blog1.png
deleted file mode 100644
index 7eba370614..0000000000
Binary files a/frontend/public/images/blog1.png and /dev/null differ
diff --git a/frontend/public/images/blog3.png b/frontend/public/images/blog3.png
deleted file mode 100644
index f06f0fe07f..0000000000
Binary files a/frontend/public/images/blog3.png and /dev/null differ
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index 8791b97e37..ce99bdc6df 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -23,7 +23,8 @@
],
"allowJs": true,
"skipLibCheck": true,
- "strict": false,
+ "strict": true,
+ "noImplicitAny": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
@@ -37,8 +38,8 @@
"include": [
"next-env.d.ts",
"**/*.ts",
- "**/*.tsx"
-, "components/basic/layout.js" ],
+ "**/*.tsx",
+ ],
"exclude": [
"node_modules"
]
diff --git a/img/dashboard.png b/img/dashboard.png
deleted file mode 100644
index 75791f4e9a..0000000000
Binary files a/img/dashboard.png and /dev/null differ
diff --git a/img/logo.png b/img/logo.png
deleted file mode 100644
index 5c92e1cac7..0000000000
Binary files a/img/logo.png and /dev/null differ
diff --git a/img/terminal.png b/img/terminal.png
deleted file mode 100644
index dcf4a83359..0000000000
Binary files a/img/terminal.png and /dev/null differ