Skip to content

Commit 59e6587

Browse files
Merge pull request #476 from xai-foundation/fix/ssa/remove-duplicate-icons
Remove duplicate icon exports
2 parents 2b2d3c7 + 41e5931 commit 59e6587

File tree

18 files changed

+19
-45
lines changed

18 files changed

+19
-45
lines changed

apps/sentry-client-desktop/src/components/AssignKeysSentryNotRunning.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {useOperatorRuntime} from "@/hooks/useOperatorRuntime";
2-
import {WarningIcon} from "@sentry/ui/dist/src/rebrand/icons/IconsComponents";
2+
import {WarningIcon} from "@sentry/ui/dist/src/rebrand/icons";
33
import {PrimaryButton} from "@sentry/ui";
44

55
export function AssignKeysSentryNotRunning() {

apps/sentry-client-desktop/src/features/drawer/ActionsRequiredPromptHandler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {chainStateAtom} from "@/hooks/useChainDataWithCallback";
66
import {useStorage} from "@/features/storage";
77
import BaseCallout from "@sentry/ui/dist/src/rebrand/callout/BaseCallout";
88
import {PrimaryButton} from "@sentry/ui";
9-
import {WarningIcon} from "@sentry/ui/src/rebrand/icons/IconsComponents";
9+
import {WarningIcon} from "@sentry/ui/src/rebrand/icons";
1010

1111
export function ActionsRequiredPromptHandler() {
1212
const setDrawerState = useSetAtom(drawerStateAtom);

apps/sentry-client-desktop/src/features/drawer/WhitelistDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {useEffect, useState} from "react";
66
import {useStorage} from "@/features/storage";
77
import {useOperatorRuntime} from "@/hooks/useOperatorRuntime";
88
import {useOperator} from "@/features/operator";
9-
import {HelpIcon, WarningIcon} from "@sentry/ui/dist/src/rebrand/icons/IconsComponents";
9+
import {HelpIcon, WarningIcon} from "@sentry/ui/dist/src/rebrand/icons";
1010
import MainCheckbox from "@sentry/ui/dist/src/rebrand/checkboxes/MainCheckbox";
1111
import BaseCallout from "@sentry/ui/dist/src/rebrand/callout/BaseCallout";
1212
import {AiOutlineClose} from "react-icons/ai";

apps/sentry-client-desktop/src/features/home/modals/ImportSentryAlertModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {AiOutlineClose} from "react-icons/ai";
22
import {Dispatch, SetStateAction} from "react";
3-
import {WarningIcon} from "@sentry/ui/dist/src/rebrand/icons/IconsComponents";
3+
import {WarningIcon} from "@sentry/ui/dist/src/rebrand/icons";
44
import {PrimaryButton} from "@sentry/ui";
55
import {TextButton} from "@sentry/ui/dist/src/rebrand/buttons/TextButton";
66

apps/sentry-client-desktop/src/features/home/modals/ImportSentryDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {ChangeEvent} from "react";
55
import {BiLoaderAlt} from "react-icons/bi";
66
import {ImportSentryAlertModal} from "@/features/home/modals/ImportSentryAlertModal";
77
import {verifyPrivateKey} from "@sentry/core";
8-
import {WarningIcon} from "@sentry/ui/dist/src/rebrand/icons/IconsComponents";
8+
import {WarningIcon} from "@sentry/ui/dist/src/rebrand/icons";
99

1010
import React, { useState } from "react";
1111
import { CiSearch } from "react-icons/ci";

apps/sentry-client-desktop/src/features/home/modals/RemoveWalletModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import {useStorage} from "@/features/storage";
22
import {useState} from "react";
33
import {FaCircleCheck} from "react-icons/fa6";
44
import {WalletAssignedMap} from "@/features/keys/Keys";
5-
import {WarningIcon} from "@sentry/ui/dist/src/rebrand/icons/IconsComponents";
6-
import {CloseIcon} from "@sentry/ui/dist/src/rebrand/icons/CloseIcon";
5+
import {CloseIcon, WarningIcon} from "@sentry/ui/dist/src/rebrand/icons";
76
import {PrimaryButton} from "@sentry/ui";
87

98
interface ImportSentryAlertModalProps {

apps/sentry-client-desktop/src/features/home/modals/actions-required/ActionsRequiredBuyDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {AiOutlineClose} from "react-icons/ai";
22
import {IoMdCloseCircle} from "react-icons/io";
33
import {useSetAtom} from "jotai";
44
import {drawerStateAtom, DrawerView} from "../../../drawer/DrawerManager";
5-
import { WarningIcon } from "@sentry/ui/src/rebrand/icons/IconsComponents";
5+
import { WarningIcon } from "@sentry/ui/src/rebrand/icons";
66
import { PrimaryButton } from "@sentry/ui";
77

88
export function ActionsRequiredBuyDrawer() {

apps/sentry-client-desktop/src/features/home/modals/actions-required/ActionsRequiredNotAccruingDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {accruingStateAtom} from "@/hooks/useAccruingInfo";
1313
import {chainStateAtom} from "@/hooks/useChainDataWithCallback";
1414
import {useStorage} from "@/features/storage";
1515
import {AllowedWalletsCard} from "@/features/home/modals/actions-required/AllowedWalletsCard";
16-
import { WarningIcon } from "@sentry/ui/src/rebrand/icons/IconsComponents";
16+
import { WarningIcon } from "@sentry/ui/src/rebrand/icons";
1717

1818
export function ActionsRequiredNotAccruingDrawer() {
1919
const setDrawerState = useSetAtom(drawerStateAtom);

apps/sentry-client-desktop/src/features/home/modals/view-keys/ViewKeysFlow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {drawerStateAtom} from "@/features/drawer/DrawerManager";
99
import {useOperator} from "@/features/operator";
1010
import { PrimaryButton } from "@sentry/ui";
1111
import BaseCallout from "@sentry/ui/src/rebrand/callout/BaseCallout";
12-
import { WarningIcon } from "@sentry/ui/src/rebrand/icons/IconsComponents";
12+
import { WarningIcon } from "@sentry/ui/src/rebrand/icons";
1313
import { getAddress } from "ethers";
1414
import { config } from "@sentry/core";
1515

apps/sentry-client-desktop/src/features/keys/KeysTableBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useState } from "react";
22
import { BulkOwnerOrPool } from "@sentry/core";
3-
import { CopyIcon, DefaultPollIcon, KeyIcon, Wallet, WarningIcon } from "@sentry/ui/dist/src/rebrand/icons/IconsComponents";
3+
import { CopyIcon, DefaultPollIcon, KeyIcon, Wallet, WarningIcon } from "@sentry/ui/dist/src/rebrand/icons";
44
import { AiFillCheckCircle } from "react-icons/ai";
55
import { HiOutlineDotsVertical } from "react-icons/hi";
66
import CustomTooltip from "@sentry/ui/dist/src/rebrand/tooltip/Tooltip";

apps/sentry-client-desktop/src/features/keys/NoKeys.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {useSetAtom} from "jotai";
22
import {drawerStateAtom, DrawerView} from "../drawer/DrawerManager";
3-
import { WarningIcon } from "@sentry/ui/src/rebrand/icons/IconsComponents";
3+
import { WarningIcon } from "@sentry/ui/src/rebrand/icons";
44
import { PrimaryButton } from "@sentry/ui";
55

66
export function NoKeys() {

apps/sentry-client-desktop/src/features/keys/modals/buy-keys/BuyKeysOrderTotal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {Dispatch, SetStateAction, useState} from "react";
66
import {ethers} from "ethers";
77
// import {Tooltip} from "@sentry/ui";
88
import {getPromoCode} from "@sentry/core";
9-
import { PlusIcon, WarningIcon } from "@sentry/ui/src/rebrand/icons/IconsComponents";
9+
import { PlusIcon, WarningIcon } from "@sentry/ui/src/rebrand/icons";
1010
import { PrimaryButton } from "@sentry/ui";
1111
import BaseCallout from "@sentry/ui/src/rebrand/callout/BaseCallout";
1212

apps/web-connect/src/features/checkout/components/ActionSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useCallback, useState } from 'react';
22
import { PrimaryButton } from "@sentry/ui";
33
import BaseCallout from "@sentry/ui/src/rebrand/callout/BaseCallout";
4-
import { WarningIcon } from "@sentry/ui/src/rebrand/icons/IconsComponents";
4+
import { WarningIcon } from "@sentry/ui/src/rebrand/icons";
55
import { mapWeb3Error } from "@/utils/errors";
66
import { useWebBuyKeysContext } from '../contexts/useWebBuyKeysContext';
77
import CrossmintModal from './crossmint/CrossmintModal';

apps/web-connect/src/features/checkout/components/ChooseQuantityRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { WarningIcon } from "@sentry/ui/src/rebrand/icons/IconsComponents";
1+
import { WarningIcon } from "@sentry/ui/src/rebrand/icons";
22
import { Tooltip, XaiNumberInput, InfoPointRed, RedSentryIcon } from "@sentry/ui";
33
import { useWebBuyKeysContext } from '../contexts/useWebBuyKeysContext';
44
import BaseCallout from "@sentry/ui/src/rebrand/callout/BaseCallout";

apps/web-connect/src/features/checkout/components/PromoCodeRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react';
22
import { AiFillInfoCircle } from "react-icons/ai";
33
import { PrimaryButton } from "@sentry/ui";
44
import BaseCallout from "@sentry/ui/src/rebrand/callout/BaseCallout";
5-
import { WarningIcon } from "@sentry/ui/src/rebrand/icons/IconsComponents";
5+
import { WarningIcon } from "@sentry/ui/src/rebrand/icons";
66
import { formatWeiToEther } from "@sentry/core";
77
import { useWebBuyKeysContext } from '../contexts/useWebBuyKeysContext';
88

apps/web-connect/src/features/footer/ReactCookieConsent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { WarningIcon } from "@sentry/ui/src/rebrand/icons/IconsComponents";
1+
import { WarningIcon } from "@sentry/ui/src/rebrand/icons";
22
import CookieConsent from "react-cookie-consent";
33

44
export function ReactCookieConsent({ }) {

packages/ui/src/rebrand/icons/IconsComponents.tsx

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
export const WarningIcon = ({ width = 24, height = 24, className, fill = "#ffc53d" }: { width?: number, height?: number, fill?: string, className?: string }) => {
2-
3-
return (
4-
<svg style={{ width: width, height: height }} className={className} xmlns="http://www.w3.org/2000/svg" width="27.789" height="24" viewBox="0 0 27.789 24">
5-
<path id="warning_FILL1_wght400_GRAD0_opsz24_4_" data-name="warning_FILL1_wght400_GRAD0_opsz24 (4)" d="M40-856l13.895-24,13.895,24Zm13.895-3.789a1.222,1.222,0,0,0,.9-.363,1.222,1.222,0,0,0,.363-.9,1.222,1.222,0,0,0-.363-.9,1.222,1.222,0,0,0-.9-.363,1.222,1.222,0,0,0-.9.363,1.222,1.222,0,0,0-.363.9,1.222,1.222,0,0,0,.363.9A1.222,1.222,0,0,0,53.895-859.789Zm-1.263-3.789h2.526v-6.316H52.632Z" transform="translate(-40 880)" fill={fill}/>
6-
</svg>
7-
)
8-
};
9-
101
export const XaiLogoFooter = ({ width = 122, height = 97, svgClassName, wrapperClassName = "fill-white", logoClassName }: { width?: number, height?: number, fill?: string, wrapperClassName?: string, logoClassName?: string, svgClassName?: string }) => {
112

123
return (
@@ -41,9 +32,6 @@ export const XaiLogoFooter = ({ width = 122, height = 97, svgClassName, wrapperC
4132
)
4233
};
4334

44-
45-
46-
4735
export function InfoPointRed({
4836
width = 16,
4937
height = 16,
@@ -205,21 +193,6 @@ l799 -1385 -1076 -3 c-592 -1 -1078 0 -1080 2 -3 2 167 301 376 664 210 363
205193
);
206194
};
207195

208-
export const DropdownArrow = ({width = 10, height = 3, className = ""}) => {
209-
return <svg
210-
width={width} height={height} className={className}
211-
fill="#fff"
212-
xmlns="http://www.w3.org/2000/svg"
213-
viewBox="0 0 4.8117635 3.2432653" version="1.1" id="svg1" >
214-
<defs id="defs1"/>
215-
<g id="layer1"
216-
transform="translate(-0.23995138,-1.0242006)"><path d="M 2.6458332,2.6458333 V -2.3262066 8.1888758" id="path1"/>
217-
<g id="g2" transform="translate(-4.1599448,-4.385214)"><rect id="rect2" width="1.2605684" height="3.478761" x="9.7083769" y="-2.1346393" ry="0.13058987" transform="rotate(45)"/>
218-
<rect id="rect2-2" width="1.2605684"
219-
height="3.478761" x="0.083553314" y="7.4901848" ry="0.13058987"
220-
transform="matrix(-0.70710678,0.70710678,0.70710678,0.70710678,0,0)"/></g></g></svg>
221-
}
222-
223196
export const HelpIcon = ({ width = 20, height = 20, fill = "#D0CFCF" }) => {
224197
return <svg xmlns="http://www.w3.org/2000/svg" width={width} height={height}
225198
viewBox="0 0 14 14">
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
export * from './BackArrow'
22
export * from './CloseIcon'
3+
export * from './DropArrowIcon'
34
export * from './ExternalLinkIcon'
45
export * from './IconsComponents'
56
export * from './SortArrowDown'
6-
export * from './SortArrowUp'
7+
export * from './SortArrowUp'
8+
export * from './WarningIcon'

0 commit comments

Comments
 (0)