Skip to content

Commit

Permalink
add more options for content
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Andersson committed Mar 11, 2024
1 parent fa6dd69 commit f3332db
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/content/content.gql.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const contentGqlSchema = /* GraphQL */ `
size: String
body: String
border: String
background: String
image: String
position: String
width: String
Expand All @@ -48,6 +49,7 @@ export const contentGqlSchema = /* GraphQL */ `
size: String
body: String
border: String
background: String
image: String
position: String
width: String
Expand Down
1 change: 1 addition & 0 deletions src/content/content.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ it('should normalize invalid composition', () => {
size: 'h6',
body: '',
border: 'true',
background: '',
image: '',
width: '100%',
position: 'top',
Expand Down
1 change: 1 addition & 0 deletions src/content/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const createEmptyModule = (): ContentModule => ({
size: 'h6',
body: '',
border: 'true',
background: '',
image: '',
position: 'top',
width: '100%',
Expand Down
1 change: 1 addition & 0 deletions src/content/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type ContentModule = {
size: string
body: string
border: 'true' | 'false'
background: string
image: string
position: 'top' | 'bottom' | 'left' | 'right'
width: string
Expand Down

0 comments on commit f3332db

Please sign in to comment.