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 27, 2024
1 parent 5162315 commit 2bd391c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { WebView } from 'react-native-webview';

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

interface CollectibleHtmlProps {
Expand All @@ -11,7 +10,6 @@ export function CollectibleHtml({ src }: CollectibleHtmlProps) {
return (
<CollectibleCardLayout>
<WebView source={{ uri: src }} width={200} height={200} style={{ overflow: 'hidden' }} />
{/* <Box width={200} height={200} /> */}
</CollectibleCardLayout>
);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useEffect, useState } from 'react';

// import { sanitize } from 'dompurify';
import { sanitize } from 'dompurify';

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

Expand Down Expand Up @@ -29,8 +30,7 @@ export function CollectibleText({ src }: CollectibleTextProps) {
return (
<CollectibleCardLayout bg="ink.text-primary" p="4">
<Text color="ink.background-secondary" textAlign="left">
{/* {content ? sanitize(content) : ''} */}
{content}
{content ? sanitize(content) : ''}
</Text>
</CollectibleCardLayout>
);
Expand Down

0 comments on commit 2bd391c

Please sign in to comment.