Skip to content

Commit

Permalink
chore: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Sep 26, 2024
1 parent 04b7867 commit a989765
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"eas-build-pre-install": "./eas-hooks/eas-build-pre-install.sh",
"format": "prettier --write \"src/**/*.{ts,tsx}\" --ignore-path ../../.prettierignore",
"format:check": "prettier --check \"src/**/*.{ts,tsx}\" --ignore-path ../../.prettierignore",
"ios": "expo run:ios",
"ios": "expo run:ios --verbose",
"ios:build": "expo run:ios --no-bundler",
"lingui": "pnpm lingui:extract && pnpm lingui:compile",
"lingui:compile": "lingui compile",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ export function CollectiblesWidget({ collectibles, totalBalance }: CollectiblesW
>
{/* <Text>Collectibles</Text> */}
{collectibles.map((collectible: Collectible, index: number) => (
<Text key={`collectible-${index}`}>collectible.metadata.name</Text>
<Text key={`collectible-${index}`}>
{'name' in collectible ? collectible.name : collectible.metadata.name}
</Text>
))}

{/* <CollectibleCard
<CollectibleCard
collectible={{
token_uri: 'ipfs://ipfs/QmQ63rXC9F7GyLYoYNyqxeiYvbBUvmHmL36PrfYNxpw5sT/90.json',
metadata: {
Expand Down Expand Up @@ -63,7 +65,7 @@ export function CollectiblesWidget({ collectibles, totalBalance }: CollectiblesW
],
},
}}
/> */}
/>
{/* <CollectibleCard
collectible={{
id: 'a494e48bf7120c959239e8c544bc821ca4fb5a46e5fff79938943d434f252949i0',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BaseTheme, BoxProps } from '@shopify/restyle';

import { Box, Theme } from '@leather.io/ui/native';

import { Box, Theme } from '../../../../native';
import { HasChildren } from '../../../utils/has-children.shared';

type CollectibleCardLayoutProps<Theme extends BaseTheme> = BoxProps<Theme> & HasChildren;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { WebView } from 'react-native-webview';

import { Box } from '@leather.io/ui/native';

import { Box } from '../../../../native';
import { CollectibleCardLayout } from './collectible-card-layout.native';

interface CollectibleHtmlProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Image } from 'react-native';

import { Box } from '@leather.io/ui/native';
import { Box } from '../../../../native';

interface CollectibleImageProps {
alt: string;
Expand All @@ -13,3 +13,8 @@ export function CollectibleImage({ alt, source }: CollectibleImageProps) {
</Box>
);
}


Pete need to get this to work in native tomorrow and stop fucking around

good to fix expo butnot now
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { useEffect, useState } from 'react';

// import { sanitize } from 'dompurify';
import { Text } from '@leather.io/ui/native';

import { Text } from '../../../../native';
import { CollectibleCardLayout } from './collectible-card-layout.native';

interface CollectibleTextProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { styled } from 'leather-styles/jsx';

import { Eye1ClosedIcon } from '@leather.io/ui';

import { Eye1ClosedIcon } from '../../../../native';
import { CollectiblePlaceholderLayout } from './collectible-placeholder.layout.web';

export function ImageUnavailable() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Flag } from '@leather.io/ui';

import { Flag } from '../../../../../web';
import { InscriptionMetadata } from './components/inscription-metadata.web';

interface InscriptionPreviewCardProps {
Expand Down

0 comments on commit a989765

Please sign in to comment.