Build errors fixed

Kahdooie v0.2.5
Hossein Rahmani 2024-01-24 10:34:35 +03:30
parent a0ea1e0b95
commit fd42d2ad7f
5 changed files with 32 additions and 24 deletions

View File

@ -24,10 +24,10 @@ export default function Search({
action,
changeValue,
}: {
mode: string;
value: any;
action: (any: any) => any;
changeValue: (any: any) => any;
mode?: string;
value?: any;
action?: (any: any) => any;
changeValue?: (any: any) => any ;
}) {
// useEffect(() => {
// const isMobile = useMediaQuery({ query: "(max-width: 768px)" });
@ -47,7 +47,11 @@ export default function Search({
}
`}
value={value}
onChange={(e) => changeValue(e.target.value)}
onChange={(e) => {
if (changeValue) {
changeValue(e.target.value);
}
}}
placeholder="جستجو..."
required
/>

View File

@ -152,7 +152,12 @@ export default function TableController({
})}
{data.length != 0 &&
[...Array(5 - data.length)].map(() => {
return <TableRow className="border border-t-0 border-b-0" />;
return (
<TableRow
key={Math.random()}
className="border border-t-0 border-b-0"
/>
);
})}
</TableBody>
</Table>

View File

@ -54,7 +54,6 @@ export default function TopNav() {
</svg>
</div>
<Search mode="landing" />
</div>
</div>
);

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "sootzani",
"version": "0.2.4",
"version": "0.2.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "sootzani",
"version": "0.2.4",
"version": "0.2.5",
"dependencies": {
"@hookform/resolvers": "^3.3.2",
"@radix-ui/react-alert-dialog": "^1.0.5",

View File

@ -1,6 +1,6 @@
{
"name": "sootzani",
"version": "0.2.4",
"version": "0.2.5",
"private": true,
"scripts": {
"dev": "next dev",