diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 64d24ebb..f6a2e569 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -47,6 +47,7 @@ module.exports = { "These components are easy to misuse, please use the 'subscribe' component wrapper instead", }, ], + "react/display-name": "error", }, settings: { react: { diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 09e1d99e..aa958c5d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -26,7 +26,7 @@ jobs: VITE_APP_VERSION: ${{ github.sha }} NODE_OPTIONS: "--max-old-space-size=4096" - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: build path: dist diff --git a/.github/workflows/netlify-pr.yaml b/.github/workflows/netlify-pr.yaml index c63269ac..1ecff434 100644 --- a/.github/workflows/netlify-pr.yaml +++ b/.github/workflows/netlify-pr.yaml @@ -36,7 +36,7 @@ jobs: # There's a 'download artifact' action, but it hasn't been updated for the workflow_run action # (https://github.com/actions/download-artifact/issues/60) so instead we get this mess: - name: 📥 Download artifact - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: run_id: ${{ github.event.workflow_run.id }} name: build diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 61313385..0f4dace6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -54,7 +54,7 @@ jobs: tar --numeric-owner --transform "s/dist/element-call-${TARBALL_VERSION}/" -cvzf element-call-${TARBALL_VERSION}.tar.gz dist - name: Upload - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 + uses: actions/upload-artifact@cf8714cfeaba5687a442b9bcb85b29e23f468dfa env: GITHUB_TOKEN: ${{ github.token }} with: @@ -62,7 +62,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@31cebacef4805868f9ce9a0cb03ee36c32df2ac4 + uses: docker/metadata-action@9dc751fe249ad99385a2583ee0d084c400eee04e with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | diff --git a/src/Tooltip.tsx b/src/Tooltip.tsx index b90c3f86..adaa18b3 100644 --- a/src/Tooltip.tsx +++ b/src/Tooltip.tsx @@ -59,6 +59,8 @@ const Tooltip = forwardRef( }, ); +Tooltip.displayName = "Tooltip"; + interface TooltipTriggerProps { children: ReactElement; placement?: Placement; @@ -112,3 +114,5 @@ export const TooltipTrigger = forwardRef( ); }, ); + +TooltipTrigger.displayName = "TooltipTrigger"; diff --git a/src/button/Button.tsx b/src/button/Button.tsx index 5645b859..4ad3d4b3 100644 --- a/src/button/Button.tsx +++ b/src/button/Button.tsx @@ -77,6 +77,7 @@ interface Props { // TODO: add all props for