Skip to content

Commit

Permalink
feat(backend): ✨ Make Hero title configurable (#304)
Browse files Browse the repository at this point in the history
* feat(backend): ✨ Make Hero title configurable

* fix hero from backend

---------

Co-authored-by: Mads Hermansen <mads.d.hermansen+main@gmail.com>
  • Loading branch information
2 people authored and GitHub committed Apr 16, 2024
1 parent d074788 commit bbd41ff
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions backend/src/api/hero/content-types/hero/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
},
"text": {
"type": "text"
},
"title": {
"type": "string",
"required": false
}
}
}
1 change: 1 addition & 0 deletions backend/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ export interface ApiHeroHero extends Schema.SingleType {
attributes: {
image: Attribute.Media & Attribute.Required;
text: Attribute.Text;
title: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/__generated__/gql.ts

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

Loading

0 comments on commit bbd41ff

Please sign in to comment.