Featured Questions About IDDRS Framework
@@ -33,7 +31,6 @@ const FeaturedQuestions = ({ handleButtonClick }) => {
))}
-
);
};
diff --git a/src/Components/Layout/Filter/ComplainceFilter.js b/src/Components/Layout/Filter/ComplainceFilter.js
index 4cb932e..c9aba4f 100644
--- a/src/Components/Layout/Filter/ComplainceFilter.js
+++ b/src/Components/Layout/Filter/ComplainceFilter.js
@@ -1,7 +1,6 @@
import { useState } from "react";
import ToggleButton from "react-bootstrap/ToggleButton";
import ToggleButtonGroup from "react-bootstrap/ToggleButtonGroup";
-import Container from "react-bootstrap/esm/Container";
import classes from "./ComplainceFilter.module.css";
function ComplainceFilter({ onFilterChange }) {
@@ -14,23 +13,22 @@ function ComplainceFilter({ onFilterChange }) {
* not using it in this example so we will omit it.
*/
const handleChange = (val) => {
- //console.log(val);
setValue(val);
onFilterChange(val);
};
const complaince = ["Shall", "Should", "May", "Must", "Can"];
return (
-
-
Compliance Check:
-
+
+
Compliance Check:
+
{complaince.map((comp, index) => (
{comp}
diff --git a/src/Components/Layout/Filter/ComplainceFilter.module.css b/src/Components/Layout/Filter/ComplainceFilter.module.css
index e69de29..6e41b3d 100644
--- a/src/Components/Layout/Filter/ComplainceFilter.module.css
+++ b/src/Components/Layout/Filter/ComplainceFilter.module.css
@@ -0,0 +1,5 @@
+.hover-effect:hover{
+ background-color: #6c757d !important; /* Set the background color on hover */
+ color: #fff !important; /* Set the text color on hover */
+ /* Add any other styles you want for the hover effect */
+ }
\ No newline at end of file
diff --git a/src/Components/Layout/Filter/Filter.js b/src/Components/Layout/Filter/Filter.js
index d2e245b..eff5553 100644
--- a/src/Components/Layout/Filter/Filter.js
+++ b/src/Components/Layout/Filter/Filter.js
@@ -1,9 +1,9 @@
-import React, { useEffect, useState, Fragment } from "react";
-import Container from "react-bootstrap/Container";
+import React, { useEffect, useState } from "react";
import Dropdown from "react-bootstrap/Dropdown";
import classes from "../../../Static/styles.module.css";
import ToggleButton from "react-bootstrap/esm/ToggleButton";
import ToggleButtonGroup from "react-bootstrap/esm/ToggleButtonGroup";
+import filterClasses from "./Filter.module.css";
import axios from "axios";
@@ -21,21 +21,21 @@ const Filter = ({ onFilterChange }) => {
useEffect(() => {
axios
- .get("http://127.0.0.1:8000/levels/")
+ .get("http://127.0.0.1:8000/client_api/levels/")
.then((response) => setLevels(response.data))
.catch((error) => console.log(error));
}, []);
useEffect(() => {
axios
- .get("http://127.0.0.1:8000/standards/")
+ .get("http://127.0.0.1:8000/client_api/standards/")
.then((response) => setStandards(response.data))
.catch((error) => console.log(error));
}, []);
return (
-
Filter by standards:
+
Filter by Standards:
{levels.map((level) => (
@@ -66,7 +66,7 @@ const Filter = ({ onFilterChange }) => {
variant="outline-secondary"
key={standard.id}
id={`std-btn-${standard.id}`}
- //className={classes["comp-btn"]}
+ className={classes[`list-items-${standard.standardLevel}`]}
value={standard.standardTitle}
>
{standard.standardTitle}
diff --git a/src/Components/Layout/Filter/Filter.module.css b/src/Components/Layout/Filter/Filter.module.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/Components/Layout/Results/Results.js b/src/Components/Layout/Results/Results.js
index b4cdca9..92e0c7e 100644
--- a/src/Components/Layout/Results/Results.js
+++ b/src/Components/Layout/Results/Results.js
@@ -1,6 +1,5 @@
import React, { useState } from "react";
import Card from "../../UI/Card/Card";
-import Container from "react-bootstrap/esm/Container";
import Stack from "react-bootstrap/Stack";
import ResultsItem from "./ResultsItem";
import ResultModal from "../../UI/ResultModal/ResultModal";
@@ -39,7 +38,7 @@ const Results = (props) => {
{/* */}
-