Fixes the Radix UI warning for consistent IDs (#774)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/706/head^2
Alex van Andel 2021-09-26 22:55:27 +01:00 committed by GitHub
parent 7ab49acebe
commit c22beb698c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 12 deletions

View File

@ -1,3 +1,4 @@
import { IdProvider } from "@radix-ui/react-id";
import { Provider } from "next-auth/client"; import { Provider } from "next-auth/client";
import React from "react"; import React from "react";
import { HydrateProps, QueryClient, QueryClientProvider } from "react-query"; import { HydrateProps, QueryClient, QueryClientProvider } from "react-query";
@ -21,11 +22,13 @@ const AppProviders: React.FC<AppProviderProps> = ({ pageProps, children }) => {
return ( return (
<TelemetryProvider value={createTelemetryClient()}> <TelemetryProvider value={createTelemetryClient()}>
<QueryClientProvider client={queryClient}> <QueryClientProvider client={queryClient}>
<DynamicIntercomProvider> <IdProvider>
<Hydrate state={pageProps.dehydratedState}> <DynamicIntercomProvider>
<Provider session={pageProps.session}>{children}</Provider> <Hydrate state={pageProps.dehydratedState}>
</Hydrate> <Provider session={pageProps.session}>{children}</Provider>
</DynamicIntercomProvider> </Hydrate>
</DynamicIntercomProvider>
</IdProvider>
</QueryClientProvider> </QueryClientProvider>
</TelemetryProvider> </TelemetryProvider>
); );

View File

@ -30,6 +30,7 @@
"@radix-ui/react-collapsible": "^0.1.0", "@radix-ui/react-collapsible": "^0.1.0",
"@radix-ui/react-dialog": "^0.1.0", "@radix-ui/react-dialog": "^0.1.0",
"@radix-ui/react-dropdown-menu": "^0.1.0", "@radix-ui/react-dropdown-menu": "^0.1.0",
"@radix-ui/react-id": "^0.1.0",
"@radix-ui/react-slider": "^0.1.0", "@radix-ui/react-slider": "^0.1.0",
"@radix-ui/react-switch": "^0.1.0", "@radix-ui/react-switch": "^0.1.0",
"@radix-ui/react-tooltip": "^0.1.0", "@radix-ui/react-tooltip": "^0.1.0",

View File

@ -784,21 +784,22 @@
"@next/swc-darwin-arm64@11.1.2": "@next/swc-darwin-arm64@11.1.2":
version "11.1.2" version "11.1.2"
resolved "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-11.1.2.tgz#93226c38db488c4b62b30a53b530e87c969b8251" resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-11.1.2.tgz#93226c38db488c4b62b30a53b530e87c969b8251"
integrity sha512-hZuwOlGOwBZADA8EyDYyjx3+4JGIGjSHDHWrmpI7g5rFmQNltjlbaefAbiU5Kk7j3BUSDwt30quJRFv3nyJQ0w== integrity sha512-hZuwOlGOwBZADA8EyDYyjx3+4JGIGjSHDHWrmpI7g5rFmQNltjlbaefAbiU5Kk7j3BUSDwt30quJRFv3nyJQ0w==
"@next/swc-darwin-x64@11.1.2": "@next/swc-darwin-x64@11.1.2":
version "11.1.2" version "11.1.2"
resolved "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-11.1.2.tgz" resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-11.1.2.tgz#792003989f560c00677b5daeff360b35b510db83"
integrity sha512-PGOp0E1GisU+EJJlsmJVGE+aPYD0Uh7zqgsrpD3F/Y3766Ptfbe1lEPPWnRDl+OzSSrSrX1lkyM/Jlmh5OwNvA==
"@next/swc-linux-x64-gnu@11.1.2": "@next/swc-linux-x64-gnu@11.1.2":
version "11.1.2" version "11.1.2"
resolved "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-11.1.2.tgz#8216b2ae1f21f0112958735c39dd861088108f37" resolved "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-11.1.2.tgz"
integrity sha512-YcDHTJjn/8RqvyJVB6pvEKXihDcdrOwga3GfMv/QtVeLphTouY4BIcEUfrG5+26Nf37MP1ywN3RRl1TxpurAsQ== integrity sha512-YcDHTJjn/8RqvyJVB6pvEKXihDcdrOwga3GfMv/QtVeLphTouY4BIcEUfrG5+26Nf37MP1ywN3RRl1TxpurAsQ==
"@next/swc-win32-x64-msvc@11.1.2": "@next/swc-win32-x64-msvc@11.1.2":
version "11.1.2" version "11.1.2"
resolved "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-11.1.2.tgz#e15824405df137129918205e43cb5e9339589745" resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-11.1.2.tgz#e15824405df137129918205e43cb5e9339589745"
integrity sha512-e/pIKVdB+tGQYa1cW3sAeHm8gzEri/HYLZHT4WZojrUxgWXqx8pk7S7Xs47uBcFTqBDRvK3EcQpPLf3XdVsDdg== integrity sha512-e/pIKVdB+tGQYa1cW3sAeHm8gzEri/HYLZHT4WZojrUxgWXqx8pk7S7Xs47uBcFTqBDRvK3EcQpPLf3XdVsDdg==
"@node-rs/helper@1.2.1": "@node-rs/helper@1.2.1":
@ -1011,6 +1012,13 @@
dependencies: dependencies:
"@babel/runtime" "^7.13.10" "@babel/runtime" "^7.13.10"
"@radix-ui/react-id@^0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-0.1.0.tgz#d01067520fb8f4b09da3f914bfe6cb0f88c26721"
integrity sha512-SubMSz7rAtl6w8qZ9YBRbDe9GjW36JugBsc6aYqng8tFydvNtkuBMj86zN/x5QiomMo+r8ylBVvuWzRkS0WbBA==
dependencies:
"@babel/runtime" "^7.13.10"
"@radix-ui/react-label@0.1.0": "@radix-ui/react-label@0.1.0":
version "0.1.0" version "0.1.0"
resolved "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-0.1.0.tgz" resolved "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-0.1.0.tgz"
@ -3391,7 +3399,8 @@ fs.realpath@^1.0.0:
fsevents@^2.3.2, fsevents@~2.3.1, fsevents@~2.3.2: fsevents@^2.3.2, fsevents@~2.3.1, fsevents@~2.3.2:
version "2.3.2" version "2.3.2"
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
function-bind@^1.1.1: function-bind@^1.1.1:
version "1.1.1" version "1.1.1"
@ -5997,7 +6006,7 @@ react-portal@^4.2.0:
react-query@^3.21.0: react-query@^3.21.0:
version "3.24.4" version "3.24.4"
resolved "https://registry.npmjs.org/react-query/-/react-query-3.24.4.tgz#20d8469cf7d6dda7c778ba6d374aa748e97e8381" resolved "https://registry.npmjs.org/react-query/-/react-query-3.24.4.tgz"
integrity sha512-p/t18+FN5P//bk/xR39r4JRWEigYzia2+J3lmKWSZHYbcivQlygJixY+81NiTNxT1P+/P6cl173b1lEbh1R8yQ== integrity sha512-p/t18+FN5P//bk/xR39r4JRWEigYzia2+J3lmKWSZHYbcivQlygJixY+81NiTNxT1P+/P6cl173b1lEbh1R8yQ==
dependencies: dependencies:
"@babel/runtime" "^7.5.5" "@babel/runtime" "^7.5.5"
@ -6064,7 +6073,7 @@ react-transition-group@^4.3.0:
react-use-intercom@1.4.0: react-use-intercom@1.4.0:
version "1.4.0" version "1.4.0"
resolved "https://registry.yarnpkg.com/react-use-intercom/-/react-use-intercom-1.4.0.tgz#796527728c131ebf132186385bf78f69dbcd84cc" resolved "https://registry.npmjs.org/react-use-intercom/-/react-use-intercom-1.4.0.tgz"
integrity sha512-HqPp7nRnftREE01i88w2kYWOV45zvJt0Of6jtHflIBa3eKl1bAs/izZUINGCJ0DOdgAdlbLweAvJlP4VTzsJjQ== integrity sha512-HqPp7nRnftREE01i88w2kYWOV45zvJt0Of6jtHflIBa3eKl1bAs/izZUINGCJ0DOdgAdlbLweAvJlP4VTzsJjQ==
react-with-direction@^1.3.1: react-with-direction@^1.3.1: