Skip to content

Commit

Permalink
style: reformated file
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-zReeZ committed Jul 9, 2024
1 parent 913fce9 commit a5c0a2a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nextjs-interface/src/app/ui/dashboard/EspLinksElement.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

// import nextjs and react
import {useEffect, useState} from "react";
import { useEffect, useState } from "react";
import Link from "next/link";
import { usePathname } from "next/navigation";
import clsx from "clsx";
Expand Down Expand Up @@ -60,7 +60,9 @@ export default function EspLinksElement() {
}

const responseData = await response.json();
const newLinks = Array.isArray(responseData) ? responseData.flat() : [responseData];
const newLinks = Array.isArray(responseData)
? responseData.flat()
: [responseData];

setAllLinks([...allLinks, ...newLinks]);
setNewLink({ name: "", ip: "" });
Expand All @@ -69,7 +71,7 @@ export default function EspLinksElement() {
}
};

console.log(allLinks)
console.log(allLinks);

return (
<>
Expand Down

0 comments on commit a5c0a2a

Please sign in to comment.