Skip to content

Commit 950a62a

Browse files
PR adjustments
1 parent 99db08a commit 950a62a

File tree

11 files changed

+16
-19
lines changed

11 files changed

+16
-19
lines changed

src/components/BasicRow/BasicRowWithContact.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { BasicRow, BasicRowProps } from 'components/BasicRow/index'
22
import { Contact } from 'shared/types'
3-
4-
import UserIcon from '../icons/UserIcon'
3+
import { UserIcon } from 'components/icons/UserIcon'
54

65
export interface BasicRowWithContact extends BasicRowProps {
76
contact: Contact | undefined

src/components/button/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const AppButton = ({
153153
) : (
154154
<AppSpinner
155155
size={buttonHeight - defaultPadding * 2}
156-
color={textColor as string}
156+
color={textColor.toString()}
157157
/>
158158
)}
159159
{rightIcon ? (

src/components/icons/DeployWalletImage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Svg, { ClipPath, Defs, G, Path, Rect, SvgProps } from 'react-native-svg'
22

33
import { sharedColors } from 'src/shared/constants'
44

5-
const DeployWalletImage = ({
5+
export const DeployWalletImage = ({
66
width = 232,
77
height = 352,
88
...props
@@ -74,4 +74,3 @@ const DeployWalletImage = ({
7474
</Defs>
7575
</Svg>
7676
)
77-
export default DeployWalletImage

src/components/icons/HomeIcon.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { sharedColors } from 'shared/constants'
44

55
import { FooterIconInterface } from '.'
66

7-
const HomeIcon = ({
7+
export const HomeIcon = ({
88
active = false,
99
activeColor = sharedColors.primary,
1010
...props
@@ -17,4 +17,3 @@ const HomeIcon = ({
1717
/>
1818
</Svg>
1919
)
20-
export default HomeIcon

src/components/icons/NetworkIcon.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { sharedColors } from 'shared/constants'
44

55
import { FooterIconInterface } from '.'
66

7-
const NetworkIcon = ({
7+
export const NetworkIcon = ({
88
active = false,
99
activeColor = sharedColors.primary,
1010
...props
@@ -17,4 +17,3 @@ const NetworkIcon = ({
1717
/>
1818
</Svg>
1919
)
20-
export default NetworkIcon

src/components/icons/NoDappsImage.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import Svg, { ClipPath, Defs, G, Path, SvgProps } from 'react-native-svg'
22

33
import { sharedColors } from 'src/shared/constants'
44

5-
const NoDappsImage = ({ width = 268, height = 280, ...props }: SvgProps) => (
5+
export const NoDappsImage = ({
6+
width = 268,
7+
height = 280,
8+
...props
9+
}: SvgProps) => (
610
<Svg width={width} height={height} fill="none" {...props}>
711
<Path
812
fill={sharedColors.primary}
@@ -46,4 +50,3 @@ const NoDappsImage = ({ width = 268, height = 280, ...props }: SvgProps) => (
4650
</Defs>
4751
</Svg>
4852
)
49-
export default NoDappsImage

src/components/icons/UserIcon.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,3 @@ export const UserIcon = ({
2222
/>
2323
</Svg>
2424
)
25-
26-
export default UserIcon

src/components/icons/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StyleProp, TextProps, TextStyle } from 'react-native'
1+
import { ColorValue, StyleProp, TextProps, TextStyle } from 'react-native'
22
import { SvgProps } from 'react-native-svg'
33

44
export interface SVGIconInterface {
@@ -15,7 +15,7 @@ export interface MaterialIconInterface extends TextProps {
1515

1616
export interface FooterIconInterface extends SvgProps {
1717
active?: boolean
18-
activeColor?: string
18+
activeColor?: ColorValue
1919
}
2020

2121
export { Arrow } from './Arrow'

src/screens/settings/RelayDeployScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { sharedHeaderLeftOptions } from 'navigation/index'
2020
import { rootTabsRouteNames } from 'navigation/rootNavigator'
2121
import { homeStackRouteNames } from 'navigation/homeNavigator/types'
2222
import { useWholeWalletWithSetters } from 'shared/wallet'
23-
import DeployWalletImage from 'src/components/icons/DeployWalletImage'
23+
import { DeployWalletImage } from 'components/icons/DeployWalletImage'
2424

2525
import { TokenSymbol } from '../home/TokenImage'
2626

src/screens/walletConnect/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { castStyle } from 'shared/utils'
2424
import { changeTopColor } from 'store/slices/settingsSlice'
2525
import { useAppDispatch } from 'store/storeUtils'
2626
import { WalletContext } from 'shared/wallet'
27-
import NoDappsImage from 'components/icons/NoDappsImage'
27+
import { NoDappsImage } from 'components/icons/NoDappsImage'
2828

2929
import { DappItem } from './DappItem'
3030
import {

0 commit comments

Comments
 (0)