diff --git a/plugins/welcome/src/components/WelcomePage/WelcomePage.tsx b/plugins/welcome/src/components/WelcomePage/WelcomePage.tsx index 0b6eb71982..f8db59479c 100644 --- a/plugins/welcome/src/components/WelcomePage/WelcomePage.tsx +++ b/plugins/welcome/src/components/WelcomePage/WelcomePage.tsx @@ -23,6 +23,7 @@ import { ListItem, ListItemText, Link, + Button, } from '@material-ui/core'; import Timer from '../Timer'; import { @@ -35,6 +36,7 @@ import { SupportButton, featureFlagsApiRef, useApi, + FeatureFlagsContext, } from '@backstage/core'; import ErrorButton from './ErrorButton'; @@ -124,6 +126,21 @@ const WelcomePage: FC<{}> = () => {
+
+
+ diff --git a/plugins/welcome/src/plugin.ts b/plugins/welcome/src/plugin.ts index 20ec41d4c2..a54a19d4af 100644 --- a/plugins/welcome/src/plugin.ts +++ b/plugins/welcome/src/plugin.ts @@ -19,7 +19,9 @@ import WelcomePage from './components/WelcomePage'; export default createPlugin({ id: 'welcome', - register({ router }) { + register({ router, featureFlags }) { router.registerRoute('/', WelcomePage); + + featureFlags.registerFeatureFlag('enable-welcome-box'); }, });