Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: components dedup #320

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions src/components/animation/SmallSpinner.tsx

This file was deleted.

81 changes: 0 additions & 81 deletions src/components/animation/Spinner.module.css

This file was deleted.

25 changes: 0 additions & 25 deletions src/components/animation/Spinner.tsx

This file was deleted.

5 changes: 2 additions & 3 deletions src/components/banner/WarningBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Image from 'next/image';
import { WarningIcon } from '@hyperlane-xyz/widgets';
import { PropsWithChildren, ReactNode } from 'react';
import WarningIcon from '../../images/icons/warning.svg';

export function WarningBanner({
isVisible,
Expand All @@ -21,7 +20,7 @@ export function WarningBanner({
} overflow-hidden transition-all duration-500 ${className}`}
>
<div className="flex items-center gap-2">
<Image src={WarningIcon} width={20} height={20} alt="Warning:" />
<WarningIcon width={20} height={20} />
{children}
</div>
<button
Expand Down
4 changes: 2 additions & 2 deletions src/components/buttons/CopyButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CheckmarkIcon } from '@hyperlane-xyz/widgets';
import Image from 'next/image';
import { useState } from 'react';
import CheckmarkIcon from '../../images/icons/checkmark.svg';
import CopyIcon from '../../images/icons/copy-stack.svg';
import { tryClipboardSet } from '../../utils/clipboard';

Expand Down Expand Up @@ -32,7 +32,7 @@ export function CopyButton({ width, height, copyValue, classes }: Props) {
} hover:opacity-70 active:opacity-90 ${classes}`}
>
{showCheckmark ? (
<Image src={CheckmarkIcon} width={width} height={height} alt="" />
<CheckmarkIcon width={width} height={height} />
) : (
<Image src={CopyIcon} width={width} height={height} alt="" />
)}
Expand Down
51 changes: 0 additions & 51 deletions src/components/buttons/IconButton.tsx

This file was deleted.

52 changes: 0 additions & 52 deletions src/components/icons/Chevron.tsx

This file was deleted.

38 changes: 0 additions & 38 deletions src/components/icons/Discord.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions src/components/icons/Docs.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions src/components/icons/Github.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions src/components/icons/HelpIcon.tsx

This file was deleted.

Loading
Loading