diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 940d0af..0c44556 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,11 +4,9 @@
-
-
+
-
-
+
@@ -195,14 +193,7 @@
-
-
-
- 1719006515710
-
-
-
- 1719006515710
+
@@ -588,7 +579,15 @@
1719359368236
-
+
+
+ 1719360545177
+
+
+
+ 1719360545177
+
+
@@ -609,7 +608,6 @@
-
@@ -634,7 +632,8 @@
-
+
+
diff --git a/src/components/Hero.tsx b/src/components/Hero.tsx
index 5c8a67d..4901e0a 100644
--- a/src/components/Hero.tsx
+++ b/src/components/Hero.tsx
@@ -6,6 +6,7 @@ import { useState } from 'react';
import { DefinedTool } from '@tools/defineTool';
import { filterTools, tools } from '@tools/index';
import { useNavigate } from 'react-router-dom';
+import _ from 'lodash';
const exampleTools: { label: string; url: string }[] = [
{
@@ -23,14 +24,16 @@ const exampleTools: { label: string; url: string }[] = [
];
export default function Hero() {
const [inputValue, setInputValue] = useState('');
- const [filteredTools, setFilteredTools] = useState(tools);
+ const [filteredTools, setFilteredTools] = useState(
+ _.shuffle(tools)
+ );
const navigate = useNavigate();
const handleInputChange = (
event: React.ChangeEvent<{}>,
newInputValue: string
) => {
setInputValue(newInputValue);
- setFilteredTools(filterTools(tools, newInputValue));
+ setFilteredTools(_.shuffle(filterTools(tools, newInputValue)));
};
return (
@@ -61,6 +64,7 @@ export default function Hero() {
sx={{ mb: 2 }}
autoHighlight
options={filteredTools}
+ inputValue={inputValue}
getOptionLabel={(option) => option.name}
renderInput={(params) => (