Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-defi committed Jan 20, 2025
1 parent 0656950 commit c4a6d55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/core/utils/copyToClipboard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"use client";
'use client';

type CopyToClipboardParams = {
text: string;
Expand All @@ -17,4 +17,4 @@ export async function copyToClipboard({
} catch (err) {
onError?.(err);
}
};
}
7 changes: 4 additions & 3 deletions src/ui/react/identity/components/Address.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use client';
import { copyToClipboard } from '@/core/utils/copyToClipboard';

import { useIdentityContext } from '@/core-react/identity/providers/IdentityProvider';
import type { AddressReact } from '@/core-react/identity/types';
import { getSlicedAddress } from '@/core/identity/utils/getSlicedAddress';
import { copyToClipboard } from '@/core/utils/copyToClipboard';
import { useState } from 'react';
import { border, cn, color, pressable, text } from '../../../../styles/theme';

Expand Down Expand Up @@ -51,8 +52,8 @@ export function Address({
console.error('Failed to copy address:', err);
setCopyText('Failed to copy');
setTimeout(() => setCopyText('Copy'), 2000);
}
})
},
});
};

const handleKeyDown = (e: React.KeyboardEvent) => {
Expand Down

0 comments on commit c4a6d55

Please sign in to comment.