Fix import order and floating promise lint errors
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
import { useCopy } from "@probo/hooks";
|
import { useCopy } from "@probo/hooks";
|
||||||
import { useTranslate } from "@probo/i18n";
|
import { useTranslate } from "@probo/i18n";
|
||||||
import { useCallback, useRef, useState } from "react";
|
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
Card,
|
Card,
|
||||||
@@ -26,6 +25,7 @@ import {
|
|||||||
Tr,
|
Tr,
|
||||||
useConfirm,
|
useConfirm,
|
||||||
} from "@probo/ui";
|
} from "@probo/ui";
|
||||||
|
import { useCallback, useRef, useState } from "react";
|
||||||
import { useFragment } from "react-relay";
|
import { useFragment } from "react-relay";
|
||||||
import { ConnectionHandler, graphql } from "relay-runtime";
|
import { ConnectionHandler, graphql } from "relay-runtime";
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ export function SAMLConfigurationList(props: {
|
|||||||
const [copiedId, setCopiedId] = useState<string | null>(null);
|
const [copiedId, setCopiedId] = useState<string | null>(null);
|
||||||
const copiedIdTimer = useRef<ReturnType<typeof setTimeout>>();
|
const copiedIdTimer = useRef<ReturnType<typeof setTimeout>>();
|
||||||
const copyId = useCallback((id: string) => {
|
const copyId = useCallback((id: string) => {
|
||||||
navigator.clipboard.writeText(id);
|
void navigator.clipboard.writeText(id);
|
||||||
setCopiedId(id);
|
setCopiedId(id);
|
||||||
clearTimeout(copiedIdTimer.current);
|
clearTimeout(copiedIdTimer.current);
|
||||||
copiedIdTimer.current = setTimeout(() => setCopiedId(null), 2000);
|
copiedIdTimer.current = setTimeout(() => setCopiedId(null), 2000);
|
||||||
|
|||||||
Reference in New Issue
Block a user