diff --git a/Composer/packages/client/src/components/GetStarted/GetStarted.tsx b/Composer/packages/client/src/components/GetStarted/GetStarted.tsx index 08a1309e52..0c1aa2cd8d 100644 --- a/Composer/packages/client/src/components/GetStarted/GetStarted.tsx +++ b/Composer/packages/client/src/components/GetStarted/GetStarted.tsx @@ -5,8 +5,9 @@ import { jsx } from '@emotion/core'; import React from 'react'; import formatMessage from 'format-message'; -import { Panel, IPanelStyles } from 'office-ui-fabric-react/lib/Panel'; -import { Pivot, PivotItem, IPivotStyles } from 'office-ui-fabric-react/lib/Pivot'; +import { Panel, IPanelStyles, PanelType } from 'office-ui-fabric-react/lib/Panel'; +import { Pivot, PivotItem } from 'office-ui-fabric-react/lib/Pivot'; +import { Stack } from 'office-ui-fabric-react/lib/Stack'; import { GetStartedNextSteps } from './GetStartedNextSteps'; import { GetStartedLearn } from './GetStartedLearn'; @@ -25,45 +26,35 @@ const panelStyles = { root: { marginTop: 50, }, - navigation: { - display: 'block', - height: 'auto', - }, } as IPanelStyles; -const pivotStyles = { root: { paddingLeft: 20, paddingTop: 10, width: '100%' } } as IPivotStyles; - export const GetStarted: React.FC = (props) => { const { projectId, onDismiss } = props; const renderTabs = () => { return ( - - - - - - - - + + + + + + + + + + ); }; - const onRenderNavigationContent = React.useCallback( - (props, defaultRender) => ( -
{defaultRender(props)}
- ), - [] - ); - return ( ); }; diff --git a/Composer/packages/client/src/components/Header.tsx b/Composer/packages/client/src/components/Header.tsx index 2f4b4ccfd6..39a15d084e 100644 --- a/Composer/packages/client/src/components/Header.tsx +++ b/Composer/packages/client/src/components/Header.tsx @@ -158,7 +158,7 @@ export const Header = () => { const locale = useRecoilValue(localeState(projectId)); const appUpdate = useRecoilValue(appUpdateState); const [teachingBubbleVisibility, setTeachingBubbleVisibility] = useState(); - const [showGetStartedTeachingBubble, setshowGetStartedTeachingBubble] = useState(false); + const [showGetStartedTeachingBubble, setShowGetStartedTeachingBubble] = useState(false); const settings = useRecoilValue(settingsState(projectId)); const isWebChatPanelVisible = useRecoilValue(isWebChatPanelVisibleState); const botProjectSolutionLoaded = useRecoilValue(botProjectSpaceLoadedState); @@ -213,10 +213,10 @@ export const Header = () => { // pop out get started if #getstarted is in the URL useEffect(() => { if (location.hash === '#getstarted') { - setshowGetStartedTeachingBubble(true); + setShowGetStartedTeachingBubble(true); setShowGetStarted(true); } else { - setshowGetStartedTeachingBubble(false); + setShowGetStartedTeachingBubble(false); } }, [location]); @@ -386,7 +386,7 @@ export const Header = () => { { isWebChatPanelVisible={isWebChatPanelVisible} /> ) : null} - { - setShowTeachingBubble(true); - }} - onDismiss={() => { - toggleGetStarted(false); - }} - /> + + { + setShowTeachingBubble(true); + }} + onDismiss={() => { + toggleGetStarted(false); + }} + /> ); }; diff --git a/Composer/packages/client/src/components/Notifications/NotificationContainer.tsx b/Composer/packages/client/src/components/Notifications/NotificationContainer.tsx index 756176c364..9f7c8dbf87 100644 --- a/Composer/packages/client/src/components/Notifications/NotificationContainer.tsx +++ b/Composer/packages/client/src/components/Notifications/NotificationContainer.tsx @@ -4,10 +4,12 @@ /** @jsx jsx */ import { jsx, css } from '@emotion/core'; import isEmpty from 'lodash/isEmpty'; +import { Layer } from 'office-ui-fabric-react/lib/Layer'; import { useRecoilValue } from 'recoil'; import { dispatcherState } from '../../recoilModel'; import { notificationsSelector } from '../../recoilModel/selectors/notifications'; +import { zIndices } from '../../utils/zIndices'; import { NotificationCard } from './NotificationCard'; @@ -15,12 +17,15 @@ import { NotificationCard } from './NotificationCard'; const container = css` cursor: default; + top: 50px; + height: calc(100vh - 50px); position: absolute; right: 0px; padding: 6px; - z-index: 1; `; +const layerStyles = { root: { zIndex: zIndices.notificationContainer } }; + // -------------------- NotificationContainer -------------------- // export const NotificationContainer = () => { @@ -30,18 +35,20 @@ export const NotificationContainer = () => { if (isEmpty(notifications)) return null; return ( -
- {notifications.map((item) => { - return ( - - ); - })} -
+ +
+ {notifications.map((item) => { + return ( + + ); + })} +
+
); }; diff --git a/Composer/packages/client/src/components/Notifications/NotificationPanel.tsx b/Composer/packages/client/src/components/Notifications/NotificationPanel.tsx index 9db19059aa..a86bb3c4f1 100644 --- a/Composer/packages/client/src/components/Notifications/NotificationPanel.tsx +++ b/Composer/packages/client/src/components/Notifications/NotificationPanel.tsx @@ -57,7 +57,7 @@ const NotificationPanel: React.FC = ({ {formatMessage('Clear all')} - {defaultRender!(props)} + {defaultRender?.(props)} ), [handleClearAll] @@ -67,7 +67,7 @@ const NotificationPanel: React.FC = ({