diff --git a/src/sessions/SessionSection.css b/src/sessions/SessionsSection.css
similarity index 100%
rename from src/sessions/SessionSection.css
rename to src/sessions/SessionsSection.css
diff --git a/src/sessions/SessionsSection.tsx b/src/sessions/SessionsSection.tsx
index 1d3b8e6511..ff48fe039d 100644
--- a/src/sessions/SessionsSection.tsx
+++ b/src/sessions/SessionsSection.tsx
@@ -14,7 +14,7 @@ import { ViewHeader } from "../components/view-header/ViewHeader";
import { KeycloakDataTable } from "../components/table-toolbar/KeycloakDataTable";
import { useAdminClient } from "../context/auth/AdminClient";
import { FilterIcon } from "@patternfly/react-icons";
-import "./SessionSection.css";
+import "./SessionsSection.css";
const Clients = (row: UserSessionRepresentation) => {
return (
@@ -32,7 +32,9 @@ export const SessionsSection = () => {
const { t } = useTranslation("sessions");
const adminClient = useAdminClient();
const [filterDropdownOpen, setFilterDropdownOpen] = useState(false);
- const [filterType, setFilterType] = useState("All session types");
+ const [filterType, setFilterType] = useState(
+ t("sessions:All session types").toString()
+ );
const [key, setKey] = useState(0);
const refresh = () => {
@@ -61,32 +63,12 @@ export const SessionsSection = () => {
return userSessions;
};
- const options = [
- ,
- ,
- ,
- ,
- ,
- ];
-
return (
<>
{
isOpen={filterDropdownOpen}
className="filter-session-type-select"
variant={SelectVariant.single}
- onToggle={() => setFilterDropdownOpen(!filterDropdownOpen)}
+ onToggle={(isExpanded) => setFilterDropdownOpen(isExpanded)}
toggleIcon={}
onSelect={(_, value) => {
- setFilterType(value as string);
+ setFilterType(value.toString());
refresh();
setFilterDropdownOpen(false);
}}
selections={filterType}
>
- {options}
+
+
+
+
+
}
columns={[