File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed
src/pages/communities/[slug] Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 79
79
"unified" : " ^10.1.2" ,
80
80
"unist-util-visit" : " ^2.0.0" ,
81
81
"use-onclickoutside" : " ^0.4.1" ,
82
- "uuid" : " ^10.0.0" ,
83
82
"viem" : " ^1.18.1" ,
84
83
"wagmi" : " ^1.4.5" ,
85
84
"web3" : " ^1.10.0" ,
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ import { useTranslation } from "next-i18next";
15
15
import Head from "next/head" ;
16
16
import { getMetadataDescription , getMetadataTitle } from "@/utilities/Metadata" ;
17
17
import LearningMaterialsOverview from "@/components/sections/communities/overview/LearningMaterials" ;
18
- import { v4 as uuidv4 } from "uuid" ;
19
-
18
+ import { randomUUID } from "crypto" ;
20
19
export default function Slug ( props : {
21
20
pageProps : {
22
21
community : Community ;
@@ -30,7 +29,7 @@ export default function Slug(props: {
30
29
< Head >
31
30
< title > { getMetadataTitle ( t ( "communities.navigation.courses" ) , community ?. name as string ) } </ title >
32
31
{ getMetadataDescription ( community ?. description as string ) . map ( ( attributes ) => (
33
- < meta key = { `scoreboard-meta-${ uuidv4 ( ) } ` } { ...attributes } />
32
+ < meta key = { `scoreboard-meta-${ randomUUID ( ) } ` } { ...attributes } />
34
33
) ) }
35
34
</ Head >
36
35
< CommunityWrapper >
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { Community } from "@/types/community";
11
11
import CommunityWrapper from "@/components/sections/communities/overview/Wrapper" ;
12
12
import { Course , LearningModule } from "@/types/course" ;
13
13
import LearningMaterialsOverview from "@/components/sections/communities/overview/LearningMaterials" ;
14
+ import { randomUUID } from "crypto" ;
14
15
15
16
export default function LearningMaterials ( props : {
16
17
pageProps : {
@@ -24,8 +25,8 @@ export default function LearningMaterials(props: {
24
25
< div >
25
26
< Head >
26
27
< title > { getMetadataTitle ( t ( "communities.navigation.learning-materials" ) , community ?. name as string ) } </ title >
27
- { getMetadataDescription ( community ?. description as string ) . map ( ( attributes , i ) => (
28
- < meta key = { `scoreboard-meta-${ i } ` } { ...attributes } />
28
+ { getMetadataDescription ( community ?. description as string ) . map ( ( attributes ) => (
29
+ < meta key = { `scoreboard-meta-${ randomUUID ( ) } ` } { ...attributes } />
29
30
) ) }
30
31
</ Head >
31
32
< CommunityWrapper >
Original file line number Diff line number Diff line change 13898
13898
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
13899
13899
integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==
13900
13900
13901
- uuid@^10.0.0:
13902
- version "10.0.0"
13903
- resolved "https://registry.yarnpkg.com/uuid/-/uuid-10.0.0.tgz#5a95aa454e6e002725c79055fd42aaba30ca6294"
13904
- integrity sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==
13905
-
13906
13901
uuid@^3.3.2:
13907
13902
version "3.4.0"
13908
13903
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
You can’t perform that action at this time.
0 commit comments