Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/components/Base/RemoteImage/RemoteImageBadgeWrapper.styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { StyleSheet } from 'react-native';

const createStyles = () =>
StyleSheet.create({
remoteImageBadgeWrapper: {
alignSelf: 'auto',
},
});

export default createStyles;
4 changes: 4 additions & 0 deletions app/components/Base/RemoteImage/RemoteImageBadgeWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import {
PopularList,
UnpopularNetworkList,
} from '../../../util/networks/customNetworks';
import styleSheet from './RemoteImageBadgeWrapper.styles';
import { useStyles } from '../../../component-library/hooks';

interface RemoteImageBadgeWrapperProps {
chainId?: number;
Expand All @@ -32,6 +34,7 @@ interface RemoteImageBadgeWrapperProps {
const RemoteImageBadgeWrapper = (
props: PropsWithChildren<RemoteImageBadgeWrapperProps>,
) => {
const { styles } = useStyles(styleSheet, {});
// The chainId would be passed in props from parent for collectible media
//TODO remove once migrated to TS and chainID is properly typed to hex
const currentChainId = useSelector(selectChainId);
Expand Down Expand Up @@ -71,6 +74,7 @@ const RemoteImageBadgeWrapper = (
bottom: 5,
right: 5,
}}
style={styles.remoteImageBadgeWrapper}
anchorElementShape={BadgeAnchorElementShape.Rectangular}
badgeElement={
<Badge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ exports[`NftDetails renders correctly 1`] = `
onLayout={[Function]}
style={
{
"alignSelf": "flex-start",
"alignSelf": "auto",
"position": "relative",
}
}
Expand Down
Loading