File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import shuffle from 'lodash.shuffle';
3
3
4
4
import useBaseUrl from '@docusaurus/useBaseUrl' ;
5
5
import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
6
+ import BrowserOnly from '@docusaurus/BrowserOnly' ;
6
7
import ExternalLink from '@theme/ExternalLink' ;
7
8
8
9
import styles from './banner.module.scss' ;
@@ -25,7 +26,6 @@ function CompanyLogo({ logo }) {
25
26
}
26
27
27
28
function CompaniesBanner ( ) {
28
- // TODO: Select only a random 5 logos
29
29
const {
30
30
siteConfig : {
31
31
themeConfig : {
@@ -37,7 +37,9 @@ function CompaniesBanner() {
37
37
return (
38
38
< div className = { styles . banner } >
39
39
< ul className = { styles . companyLogos } >
40
- { randomLogos ( companyLogos ) . map ( ( logo ) => < CompanyLogo key = { logo . href } logo = { logo } /> ) }
40
+ < BrowserOnly >
41
+ { ( ) => randomLogos ( companyLogos ) . map ( ( logo ) => < CompanyLogo key = { logo . href } logo = { logo } /> ) }
42
+ </ BrowserOnly >
41
43
</ ul >
42
44
< ExternalLink href = "https://github.com/sponsors/gulpjs?tier_id=24682" className = { styles . supportButton } >
43
45
< span className = { styles . supportTitle } > Organization Support</ span >
You can’t perform that action at this time.
0 commit comments