File tree 1 file changed +19
-21
lines changed
1 file changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -25,27 +25,25 @@ export default function Giscus({
25
25
import ( 'giscus' ) . then ( ( ) => setMounted ( true ) ) ;
26
26
} , [ ] ) ;
27
27
28
+ if ( ! mounted ) return null ;
29
+
28
30
return (
29
- < >
30
- { mounted && (
31
- < giscus-widget
32
- id = { id }
33
- host = { host }
34
- repo = { repo }
35
- repoid = { repoId }
36
- category = { category }
37
- categoryid = { categoryId }
38
- mapping = { mapping }
39
- term = { term }
40
- strict = { strict }
41
- reactionsenabled = { reactionsEnabled }
42
- emitmetadata = { emitMetadata }
43
- inputposition = { inputPosition }
44
- theme = { theme }
45
- lang = { lang }
46
- loading = { loading }
47
- />
48
- ) }
49
- </ >
31
+ < giscus-widget
32
+ id = { id }
33
+ host = { host }
34
+ repo = { repo }
35
+ repoid = { repoId }
36
+ category = { category }
37
+ categoryid = { categoryId }
38
+ mapping = { mapping }
39
+ term = { term }
40
+ strict = { strict }
41
+ reactionsenabled = { reactionsEnabled }
42
+ emitmetadata = { emitMetadata }
43
+ inputposition = { inputPosition }
44
+ theme = { theme }
45
+ lang = { lang }
46
+ loading = { loading }
47
+ />
50
48
) ;
51
49
}
You can’t perform that action at this time.
0 commit comments