File tree Expand file tree Collapse file tree
components/Common/Partners Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,11 +15,13 @@ import style from './index.module.css';
1515type PartnersListProps = {
1616 size ?: 'big' | 'small' ;
1717 category ?: PartnerCategory ;
18+ length : number ;
1819} ;
1920
2021const PartnersList : FC < PartnersListProps > = async ( {
2122 size = 'small' ,
2223 category,
24+ length,
2325} ) => {
2426 let partners = await providePartners ( ) ;
2527
@@ -29,8 +31,8 @@ const PartnersList: FC<PartnersListProps> = async ({
2931 ) ;
3032 }
3133
32- if ( size === 'small' ) {
33- partners = partners . slice ( 0 , 6 ) ;
34+ if ( size === 'small' || length ) {
35+ partners = partners . slice ( 0 , length ?? 6 ) ;
3436 }
3537
3638 return (
Original file line number Diff line number Diff line change @@ -45,6 +45,6 @@ or the <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">unof
4545 proudly due to the support of these partners, <Link href = " /about/partners" >and more</Link >.
4646 </span >
4747 <div className = ' mt-4' >
48- <PartnersList size = " big" category = " infrastructure" />
48+ <PartnersList size = " big" category = " infrastructure" length = { 3 } />
4949 </div >
5050</section >
Original file line number Diff line number Diff line change @@ -45,6 +45,6 @@ or the <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">unof
4545 proudly due to the support of these partners, <Link href = " /about/partners" >and more</Link >.
4646 </span >
4747 <div className = ' mt-4' >
48- <PartnersList size = " big" category = " infrastructure" />
48+ <PartnersList size = " big" category = " infrastructure" length = { 3 } />
4949 </div >
5050</section >
Original file line number Diff line number Diff line change @@ -41,6 +41,6 @@ Consultez nos binaires <LinkWithArrow href="https://nodejs.org/download/nightly/
4141</span >
4242
4343 <div className = " mt-4" >
44- <PartnersList size = " big" category = " infrastructure" />
44+ <PartnersList size = " big" category = " infrastructure" length = { 3 } />
4545 </div >
4646</section >
Original file line number Diff line number Diff line change @@ -41,6 +41,6 @@ Consultez nos binaires <LinkWithArrow href="https://nodejs.org/download/nightly/
4141</span >
4242
4343 <div className = " mt-4" >
44- <PartnersList size = " big" category = " infrastructure" />
44+ <PartnersList size = " big" category = " infrastructure" length = { 3 } />
4545 </div >
4646</section >
Original file line number Diff line number Diff line change @@ -43,6 +43,6 @@ atau biner <LinkWithArrow href="https://unofficial-builds.nodejs.org/download/">
4343</span >
4444
4545 <div className = " mt-4" >
46- <PartnersList size = " big" category = " infrastructure" />
46+ <PartnersList size = " big" category = " infrastructure" length = { 3 } />
4747 </div >
4848</section >
Original file line number Diff line number Diff line change @@ -41,6 +41,6 @@ title: Node.js®をダウンロードする
4141</span >
4242
4343 <div className = " mt-4" >
44- <PartnersList size = " big" category = " infrastructure" />
44+ <PartnersList size = " big" category = " infrastructure" length = { 3 } />
4545 </div >
4646</section >
Original file line number Diff line number Diff line change @@ -41,6 +41,6 @@ title: Node.js®をダウンロードする
4141</span >
4242
4343 <div className = " mt-4" >
44- <PartnersList size = " big" category = " infrastructure" />
44+ <PartnersList size = " big" category = " infrastructure" length = { 3 } />
4545 </div >
4646</section >
Original file line number Diff line number Diff line change @@ -41,6 +41,6 @@ Confira nossos binários <LinkWithArrow href="https://nodejs.org/download/nightl
4141</span >
4242
4343 <div className = " mt-4" >
44- <PartnersList size = " big" category = " infrastructure" />
44+ <PartnersList size = " big" category = " infrastructure" length = { 3 } />
4545 </div >
4646</section >
Original file line number Diff line number Diff line change @@ -43,6 +43,6 @@ ou os binários <LinkWithArrow href="https://unofficial-builds.nodejs.org/downlo
4343</span >
4444
4545 <div className = " mt-4" >
46- <PartnersList size = " big" category = " infrastructure" />
46+ <PartnersList size = " big" category = " infrastructure" length = { 3 } />
4747 </div >
4848</section >
You can’t perform that action at this time.
0 commit comments