diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index 19a3a7397c..0af77d36c4 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -30,7 +30,7 @@ jobs: key: lock-${{ github.sha }} - name: create package-lock.json - run: npm i --package-lock-only --ignore-scripts --legacy-peer-deps + run: npm i --package-lock-only --ignore-scripts - name: hack for single file run: | diff --git a/.github/workflows/site-deploy.yml b/.github/workflows/site-deploy.yml index 030faa4bda..f358c15171 100644 --- a/.github/workflows/site-deploy.yml +++ b/.github/workflows/site-deploy.yml @@ -22,7 +22,7 @@ jobs: key: lock-${{ github.sha }} - name: create package-lock.json - run: npm i --package-lock-only --ignore-scripts --legacy-peer-deps + run: npm i --package-lock-only --ignore-scripts - name: hack for single file run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 85a76bb0f2..48f90107d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: key: lock-${{ github.sha }} - name: create package-lock.json - run: npm i --package-lock-only --ignore-scripts --legacy-peer-deps + run: npm i --package-lock-only --ignore-scripts - name: hack for single file run: | diff --git a/.github/workflows/ui.yml b/.github/workflows/ui.yml index 1bd7251ea6..be7cdf6d24 100644 --- a/.github/workflows/ui.yml +++ b/.github/workflows/ui.yml @@ -28,7 +28,7 @@ jobs: node-version: '16' - name: create package-lock.json - run: npm i --package-lock-only --ignore-scripts --legacy-peer-deps + run: npm i --package-lock-only --ignore-scripts - name: hack for single file run: | diff --git a/components/alert/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/alert/__tests__/__snapshots__/demo-extend.test.ts.snap index fc0e64ba1d..5886b15650 100644 --- a/components/alert/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/alert/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -1323,89 +1323,38 @@ Array [ `; exports[`renders ./components/alert/demo/loop-banner.md extend context correctly 1`] = ` -Array [ -
, + + , -] + class="ant-alert-message" + /> + + `; exports[`renders ./components/alert/demo/smooth-closed.md extend context correctly 1`] = ` diff --git a/components/alert/__tests__/__snapshots__/demo.test.ts.snap b/components/alert/__tests__/__snapshots__/demo.test.ts.snap index 8e0d375fe3..b3006dc519 100644 --- a/components/alert/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/alert/__tests__/__snapshots__/demo.test.ts.snap @@ -1323,89 +1323,38 @@ Array [ `; exports[`renders ./components/alert/demo/loop-banner.md correctly 1`] = ` -Array [ - , + + , -] + class="ant-alert-message" + /> + + `; exports[`renders ./components/alert/demo/smooth-closed.md correctly 1`] = ` diff --git a/components/alert/demo/loop-banner.md b/components/alert/demo/loop-banner.md index 5eea875885..02c0b9abac 100644 --- a/components/alert/demo/loop-banner.md +++ b/components/alert/demo/loop-banner.md @@ -17,30 +17,16 @@ Show a loop banner by using with [react-text-loop-next](https://npmjs.com/packag import { Alert } from 'antd'; import React from 'react'; import Marquee from 'react-fast-marquee'; -import { TextLoop } from 'react-text-loop-next'; const App: React.FC = () => ( - <> -