diff --git a/FU.SPA/src/components/pages/Discover.jsx b/FU.SPA/src/components/pages/Discover.jsx
index af371a54..f5521372 100644
--- a/FU.SPA/src/components/pages/Discover.jsx
+++ b/FU.SPA/src/components/pages/Discover.jsx
@@ -1,12 +1,6 @@
import dayjs from 'dayjs';
import { useSearchParams } from 'react-router-dom';
-import {
- Typography,
- MenuItem,
- InputLabel,
- FormControl,
- Select,
-} from '@mui/material';
+import { Typography, Tabs, Tab } from '@mui/material';
import { useEffect, useState } from 'react';
import { TagsSelector, GamesSelector, SortOptionsSelector } from '../Selectors';
import SearchService from '../../services/searchService';
@@ -362,28 +356,20 @@ export default function Discover() {
const renderTabSelectors = () => {
return (
-
-
- Discover
-
-
-
+ {
+ setTabOption(newValue);
+ setPage(1);
+ }}
+ variant="fullWidth"
+ >
+
+
+
);
};
+
return (
{
+ const renderRelationButtons = () => {
return (
-
-
- Social
-
-
- {tabOption === tabOptions.Users && (
-
- Relation Status
-
-
- )}
-
+ {relationOptions[option]}
+
+ ))}
+
+ );
+ };
+
+ const renderTabSelectors = () => {
+ return (
+ <>
+
{
+ setTabOption(newValue);
+ setPage(1);
+ }}
+ variant="fullWidth"
+ >
+
+
+
+ {tabOption === tabOptions.Users && renderRelationButtons()}
+ >
);
};