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
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ module.exports = {
'app/components/Snaps/**/*.{js,jsx,ts,tsx}',
'app/components/UI/Predict/**/*.{js,jsx,ts,tsx}',
'app/components/UI/Rewards/**/*.{js,jsx,ts,tsx}',
'app/components/UI/Perps/**/*.{js,jsx,ts,tsx}',
],
rules: {
'@metamask/design-tokens/color-no-hex': 'error',
},
},

{
files: [
'app/components/UI/Name/**/*.{js,ts,tsx}',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
NODE_OPTIONS: --max_old_space_size=12288

- name: Check bundle size
run: ./scripts/js-bundle-stats.sh ios/main.jsbundle 52
run: ./scripts/js-bundle-stats.sh ios/main.jsbundle 53

- name: Upload iOS bundle
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push-eas-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ jobs:
QUICKNODE_POLYGON_URL: ${{ secrets.QUICKNODE_POLYGON_URL }}
QUICKNODE_BSC_URL: ${{ secrets.QUICKNODE_BSC_URL }}
QUICKNODE_SEI_URL: ${{ secrets.QUICKNODE_SEI_URL }}
MM_CHARTING_LIBRARY_URL: ${{ secrets.MM_CHARTING_LIBRARY_URL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
12 changes: 12 additions & 0 deletions app/component-library/components-temp/Skeleton/Skeleton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import {
Skeleton as DSRNSkeleton,
SkeletonProps,
} from '@metamask/design-system-react-native';
import { isE2E } from '../../../util/test/utils';

const Skeleton: React.FC<SkeletonProps> = (props) => (
<DSRNSkeleton autoPlay={!isE2E && !process.env.JEST_WORKER_ID} {...props} />
);

export default Skeleton;
2 changes: 2 additions & 0 deletions app/component-library/components-temp/Skeleton/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default as Skeleton } from './Skeleton';
export type { SkeletonProps } from '@metamask/design-system-react-native';
2 changes: 1 addition & 1 deletion app/component-library/components/Skeleton/Skeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { SkeletonProps } from './Skeleton.types';
import { isE2E } from '../../../util/test/utils';

/**
* @deprecated Please update your code to use `Skeleton` from `@metamask/design-system-react-native`.
* @deprecated Please update your code to use `Skeleton` from `app/component-library/components-temp/Skeleton`.
* The API may have changed — compare props before migrating.
* @see {@link https://github.com/MetaMask/metamask-design-system/blob/main/packages/design-system-react-native/src/components/Skeleton/README.md}
* @since @metamask/design-system-react-native@0.7.0
Expand Down
Loading
Loading