Skip to content

Commit

Permalink
fix: fixed jwt token fetch getting no Ip (#94)
Browse files Browse the repository at this point in the history
* fix: fixed jwt token fetch getting no Ip

* style: reformated files
  • Loading branch information
Alex-zReeZ authored Jul 5, 2024
1 parent 4ec1499 commit 79b8d1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion nextjs-interface/src/app/ui/dashboard/RenameElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
PopoverContent,
PopoverTrigger,
} from "@/components/ui/popover";
import useFindIpById from "@/lib/data";

export default function RenameElement({ id }: { id: string }) {
const [newName, setNewName] = useState("");
Expand All @@ -32,6 +33,7 @@ export default function RenameElement({ id }: { id: string }) {
} else {
}
};
const ip = useFindIpById(id);

return (
<div className="flex cursor-pointer gap-2">
Expand Down Expand Up @@ -67,7 +69,7 @@ export default function RenameElement({ id }: { id: string }) {
</Button>
)}
</div>
<SeeToken />
<SeeToken ip={ip} />
</PopoverContent>
</Popover>
</div>
Expand Down
2 changes: 1 addition & 1 deletion nextjs-interface/src/app/ui/dashboard/SeeToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Button } from "@/components/ui/button";
import React, { useState } from "react";
import ShowToken from "@/app/ui/dashboard/ShowToken";

export default function SeeToken(ip: any) {
export default function SeeToken({ ip }: { ip: string }) {
const [showToken, setShowToken] = useState(false);

const toggleToken = () => {
Expand Down

0 comments on commit 79b8d1b

Please sign in to comment.