Skip to content

Commit

Permalink
Remove default imports from react
Browse files Browse the repository at this point in the history
  • Loading branch information
serjonya-trili committed Jul 8, 2024
1 parent 493f8d2 commit 978ffd9
Show file tree
Hide file tree
Showing 212 changed files with 691 additions and 635 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Accounts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const AccountsIcon: React.FC<IconProps> = props => (
export const AccountsIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/AddAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const AddAccountIcon: React.FC<IconProps> = props => (
export const AddAccountIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/AddContact.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const AddContactIcon: React.FC<IconProps> = props => (
export const AddContactIcon = (props: IconProps) => (
<Icon fill="none" viewBox="0 0 13 17" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
d="M13 12.5L10.75 12.5M10.75 12.5L8.5 12.5M10.75 12.5V10.25M10.75 12.5V14.75M6.25 14.75H1C1 11.8505 3.35051 9.5 6.25 9.5C6.77123 9.5 7.27472 9.57596 7.75 9.71741M9.25 4.25C9.25 5.90685 7.90685 7.25 6.25 7.25C4.59315 7.25 3.25 5.90685 3.25 4.25C3.25 2.59315 4.59315 1.25 6.25 1.25C7.90685 1.25 9.25 2.59315 9.25 4.25Z"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/AddressBook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const AddressBookIcon: React.FC<IconProps> = props => (
export const AddressBookIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Baker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const BakerIcon: React.FC<IconProps> = props => (
export const BakerIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Batch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const BatchIcon: React.FC<IconProps> = props => (
export const BatchIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/BurgerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const BurgerMenuIcon: React.FC<IconProps> = props => (
export const BurgerMenuIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/CheckIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const CheckIcon: React.FC<IconProps> = props => (
export const CheckIcon = (props: IconProps) => (
<Icon
width="15px"
height="11px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Checkmark.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const CheckmarkIcon: React.FC<IconProps> = props => (
export const CheckmarkIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/ChevronDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const ChevronDownIcon: React.FC<IconProps> = props => (
export const ChevronDownIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/ChevronRight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const ChevronRightIcon: React.FC<IconProps> = props => (
export const ChevronRightIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/ChevronUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const ChevronUpIcon: React.FC<IconProps> = props => (
export const ChevronUpIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Coin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const CoinIcon: React.FC<IconProps> = props => (
export const CoinIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Contact.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const ContactIcon: React.FC<IconProps> = props => (
export const ContactIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Contract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const ContractIcon: React.FC<IconProps> = props => (
export const ContractIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/CrossedCircle.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const CrossedCircleIcon: React.FC<IconProps> = props => (
export const CrossedCircleIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Diamond.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const DiamondIcon: React.FC<IconProps> = props => (
export const DiamondIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const DocumentIcon: React.FC<IconProps> = props => (
export const DocumentIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/DoubleCheckmark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const DoubleCheckmarkIcon: React.FC<IconProps> = props => (
export const DoubleCheckmarkIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const DownloadIcon: React.FC<IconProps> = props => (
export const DownloadIcon = (props: IconProps) => (
<Icon
width="16px"
height="16px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/EditAccount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const EditAccountIcon: React.FC<IconProps> = props => (
export const EditAccountIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Email.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const EmailIcon: React.FC<IconProps> = props => (
export const EmailIcon = (props: IconProps) => (
<Icon
width="28px"
height="28px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Exclamation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const ExclamationIcon: React.FC<IconProps> = props => (
export const ExclamationIcon = (props: IconProps) => (
<Icon
width="12px"
height="12px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/ExitArrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const ExitArrowIcon: React.FC<IconProps> = props => (
export const ExitArrowIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/ExternalLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const ExternalLinkIcon: React.FC<IconProps> = props => (
export const ExternalLinkIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Eye.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const EyeIcon: React.FC<IconProps> = props => (
export const EyeIcon = (props: IconProps) => (
<Icon
width="16px"
height="12px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/EyeSlash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const EyeSlashIcon: React.FC<IconProps> = props => (
export const EyeSlashIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/FA1.2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const FA12Icon: React.FC<IconProps> = props => (
export const FA12Icon = (props: IconProps) => (
<Icon
width="30px"
height="15px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/FA2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const FA2Icon: React.FC<IconProps> = props => (
export const FA2Icon = (props: IconProps) => (
<Icon
width="23px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Facebook.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const FacebookIcon: React.FC<IconProps> = props => (
export const FacebookIcon = (props: IconProps) => (
<Icon
width="28px"
height="28px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const FeedbackIcon: React.FC<IconProps> = props => (
export const FeedbackIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Fetching.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const FetchingIcon: React.FC<IconProps> = props => (
export const FetchingIcon = (props: IconProps) => (
<Icon
width="19px"
height="19px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/FileArrowDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const FileArrowDownIcon: React.FC<IconProps> = props => (
export const FileArrowDownIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/FileCopy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const FileCopyIcon: React.FC<IconProps> = props => (
export const FileCopyIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/FlipForwardEnergy.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const FlipForwardEnergy: React.FC<IconProps> = props => (
export const FlipForwardEnergy = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/FolderInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const FolderInfoIcon: React.FC<IconProps> = props => (
export const FolderInfoIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Gear.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const GearIcon: React.FC<IconProps> = props => (
export const GearIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Google.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const GoogleIcon: React.FC<IconProps> = props => (
export const GoogleIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const HelpIcon: React.FC<IconProps> = props => (
export const HelpIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Hourglass.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Icon, type IconProps } from "@chakra-ui/react";

export const HourglassIcon: React.FC<IconProps> = props => (
export const HourglassIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/IncomingArrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { type IconProps } from "@chakra-ui/react";

import { OutgoingArrow } from "./OutgoingArrow";

export const IncomingArrow: React.FC<IconProps> = props => (
export const IncomingArrow = (props: IconProps) => (
<OutgoingArrow css={{ rotate: "180deg" }} {...props} />
);
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Key.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const KeyIcon: React.FC<IconProps> = props => (
export const KeyIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Ledger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const LedgerIcon: React.FC<IconProps> = props => (
export const LedgerIcon = (props: IconProps) => (
<Icon
width="18px"
height="18px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const LinkIcon: React.FC<IconProps> = props => (
export const LinkIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src/assets/icons/Lock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Icon, type IconProps } from "@chakra-ui/react";

import colors from "../../style/colors";

export const LockIcon: React.FC<IconProps> = props => (
export const LockIcon = (props: IconProps) => (
<Icon
width="24px"
height="24px"
Expand Down
Loading

0 comments on commit 978ffd9

Please sign in to comment.