diff --git a/packages/landing/src/components/feature.updates.tsx b/packages/landing/src/components/feature.updates.tsx index 49e3c284c..b9e01fe6d 100644 --- a/packages/landing/src/components/feature.updates.tsx +++ b/packages/landing/src/components/feature.updates.tsx @@ -27,10 +27,16 @@ type FeatureUpdatesState = { showModal: boolean; }; +/** + * FeatureUpdates is a re-implementation of @linzjs/lui -> LuiUpdatesSplashModal module, + * This use to enable a one off pop up screen for introduce new feature of the recent release. + * + */ export class FeatureUpdates extends Component { constructor(props: FeatureUpdatesProps) { super(props); const currentVersion = window.localStorage.getItem(this.props.id); + this.state = { showModal: this.props.enabled && this.props.releaseVersion.trim() !== currentVersion, }; @@ -85,25 +91,6 @@ export class FeatureUpdates extends Component - whats_new_icon - - ); - } - ClearIcon(): ReactNode { - return ( - - cross_icon - - ); - } - FeatureImages(bigImage: string, smallImage: string): ReactNode { return (
@@ -128,4 +115,26 @@ export class FeatureUpdates extends Component ); } + + // @linzjs/lui whats_new_icon re-implementation + WhatsNewIcon(): ReactNode { + return ( + + whats_new_icon + + ); + } + + // @linzjs/lui cross_icon re-implementation + ClearIcon(): ReactNode { + return ( + + cross_icon + + ); + } }