Skip to content
Closed
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
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ app/selectors/earnController @MetaMask/metamask-earn
**/Earn/** @MetaMask/metamask-earn
**/earn/** @MetaMask/metamask-earn

# Perps Team
app/components/UI/Perps/ @MetaMask/perps
app/components/UI/WalletAction/*perps* @MetaMask/perps
**/Perps/** @MetaMask/perps
**/perps/** @MetaMask/perps

# Assets Team
app/components/hooks/useIsOriginalNativeTokenSymbol @MetaMask/metamask-assets
app/components/hooks/useTokenBalancesController @MetaMask/metamask-assets
Expand Down
2 changes: 2 additions & 0 deletions app/components/Nav/Main/MainNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ import { AssetLoader } from '../../Views/AssetLoader';
import { EarnScreenStack, EarnModalStack } from '../../UI/Earn/routes';
import { BridgeTransactionDetails } from '../../UI/Bridge/components/TransactionDetails/TransactionDetails';
import { BridgeModalStack, BridgeScreenStack } from '../../UI/Bridge/routes';
import { PerpsScreenStack } from '../../UI/Perps';
import TurnOnBackupAndSync from '../../Views/Identity/TurnOnBackupAndSync/TurnOnBackupAndSync';
import DeFiProtocolPositionDetails from '../../UI/DeFiPositions/DeFiProtocolPositionDetails';
import UnmountOnBlur from '../../Views/UnmountOnBlur';
Expand Down Expand Up @@ -863,6 +864,7 @@ const MainNavigator = () => (
component={StakeModalStack}
options={clearStackNavigatorOptions}
/>
<Stack.Screen name={Routes.PERPS.ROOT} component={PerpsScreenStack} />
<Stack.Screen
name="SetPasswordFlow"
component={SetPasswordFlow}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
import { StyleSheet } from 'react-native';
import { Theme } from '../../../../../util/theme/models';

const styleSheet = (params: { theme: Theme }) => {
const { theme } = params;
const { colors } = theme;

return StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.background.default,
},
header: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
paddingHorizontal: 16,
paddingVertical: 8,
marginVertical: 16,
},
headerSpacer: {
width: 24,
},
headerTitle: {
flex: 1,
textAlign: 'center',
},
closeButton: {
padding: 4,
},
listContainer: {
flex: 1,
},
listHeader: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
paddingHorizontal: 16,
marginBottom: 8,
marginTop: 30,
},
listHeaderLeft: {
flex: 1,
},
listHeaderRight: {
flex: 1,
alignItems: 'flex-end',
},
errorContainer: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
paddingHorizontal: 24,
},
errorText: {
textAlign: 'center',
marginBottom: 16,
},
flashListContent: {
paddingBottom: 16,
},
skeletonContainer: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
paddingHorizontal: 16,
paddingVertical: 16,
minHeight: 88,
},
skeletonLeftSection: {
flexDirection: 'row',
alignItems: 'center',
flex: 1,
},
skeletonAvatar: {
width: 40,
height: 40,
borderRadius: 20,
marginRight: 16,
},
skeletonTokenInfo: {
flex: 1,
},
skeletonTokenHeader: {
flexDirection: 'row',
alignItems: 'center',
marginBottom: 6,
},
skeletonTokenSymbol: {
width: 60,
height: 16,
borderRadius: 4,
marginRight: 8,
},
skeletonLeverage: {
width: 30,
height: 14,
borderRadius: 4,
},
skeletonVolume: {
width: 80,
height: 12,
borderRadius: 4,
},
skeletonRightSection: {
alignItems: 'flex-end',
flex: 1,
},
skeletonPrice: {
width: 90,
height: 16,
borderRadius: 4,
marginBottom: 6,
},
skeletonChange: {
width: 70,
height: 14,
borderRadius: 4,
},
animatedListContainer: {
flex: 1,
paddingHorizontal: 16,
},
searchContainer: {
paddingHorizontal: 16,
},
searchInputContainer: {
flexDirection: 'row',
alignItems: 'center',
backgroundColor: colors.background.muted,
borderRadius: 12,
paddingHorizontal: 16,
paddingVertical: 12,
},
searchIcon: {
marginRight: 10,
color: colors.icon.muted,
},
searchInput: {
flex: 1,
fontSize: 16,
color: colors.text.default,
},
clearButton: {
padding: 4,
marginLeft: 8,
},
});
};

export default styleSheet;
Loading