Skip to content

Commit

Permalink
feat(frontend): ✨ Update article tag values (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mads Hermansen authored and GitHub committed Apr 16, 2024
1 parent 8ac0493 commit e1240f6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions backend/src/api/article/content-types/article/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
"Tag": {
"type": "enumeration",
"enum": [
"Featured",
"News",
"Updates"
"Satellites",
"Projects",
"General"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion backend/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ export interface ApiArticleArticle extends Schema.CollectionType {
'manyToOne',
'api::author.author'
>;
Tag: Attribute.Enumeration<['Featured', 'News', 'Updates']>;
Tag: Attribute.Enumeration<['Satellites', 'Projects', 'General']>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/__generated__/graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions frontend/src/components/BlogpageButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ export default function BlogpageButtons({ className }: { className?: string }) {
All Posts
</Button>
<Button
className={`border border-white hover:bg-primary ${activeButton === "Updates" ? "bg-primary" : "bg-transparent"}`}
onClick={() => handleParameterChange("Updates")}
className={`border border-white hover:bg-primary ${activeButton === "Satellites" ? "bg-primary" : "bg-transparent"}`}
onClick={() => handleParameterChange("Satellites")}
>
Updates
Satellites
</Button>
<Button
className={`border border-white hover:bg-primary ${activeButton === "News" ? "bg-primary" : "bg-transparent"}`}
onClick={() => handleParameterChange("News")}
className={`border border-white hover:bg-primary ${activeButton === "Projects" ? "bg-primary" : "bg-transparent"}`}
onClick={() => handleParameterChange("Projects")}
>
News
Projects
</Button>
</div>
);
Expand Down

0 comments on commit e1240f6

Please sign in to comment.