Remove 'bannerId' property from AnnouncementBanner
The 'bannerId' property has been removed from the AnnouncementBanner component as it is unneeded. This change has been reflected in both the component definition and places where the component is used, resulting in cleaner and more maintainable code.
This commit is contained in:
parent
0d2c92052b
commit
bdfe5a4539
2 changed files with 2 additions and 5 deletions
|
@ -1,18 +1,16 @@
|
|||
---
|
||||
const { title, bannerId, btnId, btnTitle, url } = Astro.props;
|
||||
const { title, btnId, btnTitle, url } = Astro.props;
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
bannerId: string;
|
||||
btnId: string;
|
||||
btnTitle: string;
|
||||
url: string;
|
||||
}
|
||||
---
|
||||
|
||||
<astro-banner id={bannerId} btnId={btnId}>
|
||||
<astro-banner btnId={btnId}>
|
||||
<div
|
||||
id={bannerId}
|
||||
class="fixed bottom-0 start-1/2 z-50 mx-auto w-full -translate-x-1/2 transform p-6 sm:max-w-4xl"
|
||||
>
|
||||
<div
|
||||
|
|
|
@ -22,7 +22,6 @@ const avatarSrcs: Array<string> = [
|
|||
<MainLayout>
|
||||
<AnnouncementBanner
|
||||
title="ScrewFast is Live"
|
||||
bannerId="banner-with-dismiss-button"
|
||||
btnId="dismiss-button"
|
||||
btnTitle="Learn more"
|
||||
url="https://github.com/mearashadowfax/ScrewFast"
|
||||
|
|
Loading…
Add table
Reference in a new issue