From 4b95b50917c27f85796fc8eafc63ffbd69f248a9 Mon Sep 17 00:00:00 2001 From: krupa Date: Mon, 3 Feb 2025 18:12:53 +0530 Subject: [PATCH] fix: update contact herosection --- src/api/contact/content-types/contact/schema.json | 4 ++-- src/components/elements/items.json | 4 ++++ src/components/section-hero/company-hero-section.json | 8 -------- types/generated/components.d.ts | 4 +--- types/generated/contentTypes.d.ts | 2 +- 5 files changed, 8 insertions(+), 14 deletions(-) diff --git a/src/api/contact/content-types/contact/schema.json b/src/api/contact/content-types/contact/schema.json index f051967..cfab5e0 100644 --- a/src/api/contact/content-types/contact/schema.json +++ b/src/api/contact/content-types/contact/schema.json @@ -18,9 +18,9 @@ "section-cta.banner", "section-cards.community-support", "section-cards.case-studies", - "section-hero.company-hero-section", "seo.seo", - "section-separator.separator" + "section-separator.separator", + "section-hero.contact-hero-section" ] }, "seo": { diff --git a/src/components/elements/items.json b/src/components/elements/items.json index e7c8f55..78dd876 100644 --- a/src/components/elements/items.json +++ b/src/components/elements/items.json @@ -24,6 +24,10 @@ "videos", "audios" ] + }, + "link": { + "type": "string", + "required": true } } } diff --git a/src/components/section-hero/company-hero-section.json b/src/components/section-hero/company-hero-section.json index 5b316e5..00c2940 100644 --- a/src/components/section-hero/company-hero-section.json +++ b/src/components/section-hero/company-hero-section.json @@ -18,14 +18,6 @@ "type": "component", "repeatable": false, "component": "elements.button" - }, - "headingGradientColor": { - "type": "enumeration", - "enum": [ - "blue", - "cyan", - "orange" - ] } } } diff --git a/types/generated/components.d.ts b/types/generated/components.d.ts index 157fce7..c34cded 100644 --- a/types/generated/components.d.ts +++ b/types/generated/components.d.ts @@ -122,6 +122,7 @@ export interface ElementsItems extends Struct.ComponentSchema { attributes: { description: Schema.Attribute.Text; image: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>; + link: Schema.Attribute.String & Schema.Attribute.Required; title: Schema.Attribute.String & Schema.Attribute.Required; }; } @@ -582,9 +583,6 @@ export interface SectionHeroCompanyHeroSection extends Struct.ComponentSchema { }; attributes: { description: Schema.Attribute.Text; - headingGradientColor: Schema.Attribute.Enumeration< - ['blue', 'cyan', 'orange'] - >; primaryButton: Schema.Attribute.Component<'elements.button', false>; title: Schema.Attribute.String & Schema.Attribute.Required; }; diff --git a/types/generated/contentTypes.d.ts b/types/generated/contentTypes.d.ts index 708b930..7a73299 100644 --- a/types/generated/contentTypes.d.ts +++ b/types/generated/contentTypes.d.ts @@ -608,9 +608,9 @@ export interface ApiContactContact extends Struct.SingleTypeSchema { 'section-cta.banner', 'section-cards.community-support', 'section-cards.case-studies', - 'section-hero.company-hero-section', 'seo.seo', 'section-separator.separator', + 'section-hero.contact-hero-section', ] >; createdAt: Schema.Attribute.DateTime;