another comment
This commit is contained in:
1 parent
5bbae7e9cc
commit
365daa9c6d
1 file changed
+3
@@ -8,6 +8,9 @@ interface AnnouncementProps {
|
||||
hideAnnouncement: () => void
|
||||
}
|
||||
|
||||
/*
|
||||
You must update the latestAnnouncementId in ClineProvider for new announcements to show to users. This new id will be compared with whats in state for the 'last announcement shown', and if it's different then the announcement will render. As soon as an announcement is shown, the id will be updated in state. This ensures that announcements are not shown more than once, even if the user doesn't close it themselves.
|
||||
*/
|
||||
const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
|
||||
const { t } = useTranslation("translation", { keyPrefix: "announcement" })
|
||||
|
||||
|
||||
Reference in new issue
Block a user