📌 feat: Add Support for Persistable (Non-Dismissible) Banners (#10730)

* feat: Add persistable property to banners and update related components

* refactor: Clean up Banner component and improve className handling
This commit is contained in:
Marco Beretta 2025-12-03 23:22:35 +01:00 committed by Danny Avila
parent b478560c81
commit 7080c61525
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
5 changed files with 42 additions and 13 deletions

View file

@ -7,6 +7,7 @@ export interface IBanner extends Document {
displayTo?: Date;
type: 'banner' | 'popup';
isPublic: boolean;
persistable: boolean;
}
const bannerSchema = new Schema<IBanner>(
@ -36,6 +37,10 @@ const bannerSchema = new Schema<IBanner>(
type: Boolean,
default: false,
},
persistable: {
type: Boolean,
default: false,
},
},
{ timestamps: true },
);

View file

@ -7,4 +7,5 @@ export interface IBanner extends Document {
displayTo?: Date;
type: 'banner' | 'popup';
isPublic: boolean;
persistable: boolean;
}