Narrow component prop types, remove unused props and dead code (#2838)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Paweł Kuna
2026-08-09 23:14:33 +02:00
committed by GitHub
co-authored by StarDev
parent 0085eeba6e
commit 4f7beecd2b
90 changed files with 265 additions and 656 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ const typedId = 'typed'
</div>
<div class="col-md-6">
<div class="hero-img-side">
<Carousel id="carousel-controls" slideCount={3} interval={4000}>
<Carousel id="carousel-controls" interval={4000}>
<div class="carousel-item active">
<Illustration image="boy-with-key.svg" class="d-block mx-auto" height="350" />
</div>
@@ -3,13 +3,12 @@ import Button from '@ui/Button.astro'
import ButtonList from '@ui/ButtonList.astro'
interface Props {
background?: string
class?: string
}
const { background, class: className } = Astro.props
const { class: className } = Astro.props
const sectionClass = ['section', background && `section-${background}`, className]
const sectionClass = ['section', className]
---
<section class:list={sectionClass}>
@@ -1,20 +1,16 @@
---
import SectionDivider from '../SectionDivider.astro'
import Icon from '@ui/Icon.astro'
interface Props {
background?: string
class?: string
divider?: string
}
const { background, class: className, divider } = Astro.props
const { class: className } = Astro.props
const sectionClass = ['section', background && `section-${background}`, className]
const sectionClass = ['section', className]
---
<section class:list={sectionClass}>
<SectionDivider divider={divider} />
<div class="container">
<div class="row items-center text-center g-lg-10">
<div class="col-md-6 col-lg">
@@ -1,20 +1,17 @@
---
import SectionDivider from '../SectionDivider.astro'
import Icon from '@ui/Icon.astro'
interface Props {
background?: string
class?: string
divider?: string
}
const { background, class: className, divider } = Astro.props
const { background, class: className } = Astro.props
const sectionClass = ['section', background && `section-${background}`, className]
---
<section class:list={sectionClass}>
<SectionDivider divider={divider} />
<div class="container">
<div class="section-header">
<h2 class="section-title">Everything you need to deploy your app</h2>
@@ -1,20 +1,17 @@
---
import SectionDivider from '../SectionDivider.astro'
import Icon from '@ui/Icon.astro'
interface Props {
background?: string
class?: string
divider?: string
}
const { background, class: className, divider } = Astro.props
const { background, class: className } = Astro.props
const sectionClass = ['section', background && `section-${background}`, className]
---
<section class:list={sectionClass}>
<SectionDivider divider={divider} />
<div class="container">
<div class="section-header">
<h2 class="section-title">Everything you need to deploy your app</h2>
@@ -2,13 +2,12 @@
import Icon from '@ui/Icon.astro'
interface Props {
background?: string
class?: string
}
const { background, class: className } = Astro.props
const { class: className } = Astro.props
const sectionClass = ['section', background && `section-${background}`, className]
const sectionClass = ['section', className]
---
<section class:list={sectionClass}>
@@ -1,13 +1,7 @@
---
import Icon from '@ui/Icon.astro'
interface Props {
background?: string
}
const { background } = Astro.props
const sectionClass = ['section', background && `section-${background}`]
const sectionClass = ['section']
---
<section class:list={sectionClass}>
@@ -2,13 +2,12 @@
import Icon from '@ui/Icon.astro'
interface Props {
background?: string
class?: string
}
const { background, class: className } = Astro.props
const { class: className } = Astro.props
const sectionClass = ['section', background && `section-${background}`, className]
const sectionClass = ['section', className]
---
<section class:list={sectionClass}>
@@ -13,15 +13,14 @@ interface Person {
}
interface Props {
background?: string
class?: string
limit?: number
hideHeader?: boolean
}
const { background, class: className, limit = 99, hideHeader } = Astro.props
const { class: className, limit = 99, hideHeader } = Astro.props
const sectionClass = ['section', background && `section-${background}`, className]
const sectionClass = ['section', className]
// Slice testimonials and split into 3 columns.
const list = (testimonials as string[]).slice(0, limit)