Skip to content
This repository was archived by the owner on Feb 15, 2022. It is now read-only.

Rename Blog2 to BlogCard #541

Merged
merged 1 commit into from
Sep 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/[lang]/community/aroundweb.res
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module T = {
blogSectionHeader: string,
blogSectionDescription: string,
blog: string,
blogEntries: array<Blog2.Entry.t>,
blogEntries: array<BlogCard.Entry.t>,
blogArchiveText: string,
spacesSectionHeader: string,
spaces: array<Space.t>,
Expand Down Expand Up @@ -153,7 +153,7 @@ module T = {
</div>
<LatestNews content=content.latestNewsContent />
<Events content=content.events lang />
<Blog2
<BlogCard
header=content.blogSectionHeader
description=content.blogSectionDescription
blog=content.blog
Expand Down
2 changes: 1 addition & 1 deletion pages/[lang]/community/aroundweb.resi
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type t = {
blogSectionHeader: string,
blogSectionDescription: string,
blog: string,
blogEntries: array<Blog2.Entry.t>,
blogEntries: array<BlogCard.Entry.t>,
blogArchiveText: string,
spacesSectionHeader: string,
spaces: array<Space.t>,
Expand Down
30 changes: 15 additions & 15 deletions pages/storybook.res
Original file line number Diff line number Diff line change
Expand Up @@ -993,11 +993,11 @@ module Categories = {
}
}

module Blog2 = {
module BlogCard = {
@react.component
let make = () => {
let entry = n => {
Blog2.Entry.title: "Title" ++ n,
BlogCard.Entry.title: "Title" ++ n,
excerpt: "Excerpt" ++ n,
author: "Author" ++ n,
dateValue: "DateValue" ++ n,
Expand All @@ -1006,12 +1006,12 @@ module Categories = {
}
let entries = n => Belt.Array.makeBy(n, i => entry(string_of_int(i)))
<Item
name="Blog2"
docs="Blog2 element. NOTE: Blog2 must have 3 elements. Any more will be ignored, any less will result in an exception.">
name="BlogCard"
docs="BlogCard element. NOTE: BlogCard must have 3 elements. Any more will be ignored, any less will result in an exception.">
{[
// (
// "Blog2 with no entries.",
// <Blog2
// "BlogCard with no entries.",
// <BlogCard
// header="Header"
// description="Description"
// blog="Blog"
Expand All @@ -1020,8 +1020,8 @@ module Categories = {
// />,
// ),
// (
// "Blog2 with 1 entry.",
// <Blog2
// "BlogCard with 1 entry.",
// <BlogCard
// header="Header"
// description="Description"
// blog="Blog"
Expand All @@ -1030,8 +1030,8 @@ module Categories = {
// />,
// ),
// (
// "Blog2 with 2 entries.",
// <Blog2
// "BlogCard with 2 entries.",
// <BlogCard
// header="Header"
// description="Description"
// blog="Blog"
Expand All @@ -1040,8 +1040,8 @@ module Categories = {
// />,
// ),
(
"Blog2 with 3 entries.",
<Blog2
"BlogCard with 3 entries.",
<BlogCard
header="Header"
description="Description"
blog="Blog"
Expand All @@ -1050,8 +1050,8 @@ module Categories = {
/>,
),
(
"Blog2 with 10 entries.",
<Blog2
"BlogCard with 10 entries.",
<BlogCard
header="Header"
description="Description"
blog="Blog"
Expand Down Expand Up @@ -1153,7 +1153,7 @@ module Categories = {
<Hero />
<HighlightsInQuadrants />
<MediaCarousel />
<Blog2 />
<BlogCard />
<Stats />
<Testimonials />
<Timeline />
Expand Down
File renamed without changes.
File renamed without changes.