-
Notifications
You must be signed in to change notification settings - Fork 800
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic structure for feature recommendations card
- Loading branch information
Showing
7 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
projects/packages/my-jetpack/_inc/components/product-cards-section/newsletter-card.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { PRODUCT_SLUGS } from '../../data/constants'; | ||
import ProductCard from '../connected-product-card'; | ||
import type { FC } from 'react'; | ||
|
||
interface NewsletterCardProps { | ||
admin?: boolean; | ||
recommendation?: boolean; | ||
} | ||
|
||
const NewsletterCard: FC< NewsletterCardProps > = ( { admin, recommendation } ) => { | ||
return ( | ||
<ProductCard | ||
slug={ PRODUCT_SLUGS.NEWSLETTER } | ||
admin={ admin } | ||
recommendation={ recommendation } | ||
/> | ||
); | ||
}; | ||
|
||
export default NewsletterCard; |
20 changes: 20 additions & 0 deletions
20
projects/packages/my-jetpack/_inc/components/product-cards-section/related-posts-card.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { PRODUCT_SLUGS } from '../../data/constants'; | ||
import ProductCard from '../connected-product-card'; | ||
import type { FC } from 'react'; | ||
|
||
interface RelatedPostsCardProps { | ||
admin?: boolean; | ||
recommendation?: boolean; | ||
} | ||
|
||
const RelatedPostsCard: FC< RelatedPostsCardProps > = ( { admin, recommendation } ) => { | ||
return ( | ||
<ProductCard | ||
slug={ PRODUCT_SLUGS.RELATED_POSTS } | ||
admin={ admin } | ||
recommendation={ recommendation } | ||
/> | ||
); | ||
}; | ||
|
||
export default RelatedPostsCard; |
20 changes: 20 additions & 0 deletions
20
projects/packages/my-jetpack/_inc/components/product-cards-section/site-accelerator-card.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { PRODUCT_SLUGS } from '../../data/constants'; | ||
import ProductCard from '../connected-product-card'; | ||
import type { FC } from 'react'; | ||
|
||
interface SiteAcceleratorCardProps { | ||
admin?: boolean; | ||
recommendation?: boolean; | ||
} | ||
|
||
const SiteAcceleratorCard: FC< SiteAcceleratorCardProps > = ( { admin, recommendation } ) => { | ||
return ( | ||
<ProductCard | ||
slug={ PRODUCT_SLUGS.SITE_ACCELERATOR } | ||
admin={ admin } | ||
recommendation={ recommendation } | ||
/> | ||
); | ||
}; | ||
|
||
export default SiteAcceleratorCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters