Skip to content

Commit

Permalink
use v9 component
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii committed Dec 5, 2024
1 parent 87a0e4a commit 4db27b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/app/views/app-sections/StatusMessages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ const StatusMessages = () => {
}

if (queryRunnerStatus) {
const { statusText, status, duration, hint } = queryRunnerStatus;
const { messageBarType, statusText, status, duration, hint } = queryRunnerStatus; // remove when cleaning up

return <MessageBar messageBarType={MessageBarType.info}
const messageBarTypeKey = messageBarType as keyof typeof MessageBarType;

return <MessageBar messageBarType={MessageBarType[messageBarTypeKey]}
isMultiline={true}
onDismiss={() => dispatch(clearQueryStatus())}
dismissButtonAriaLabel='Close'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IPermissionProps } from '../../../../../types/permissions';

import LazySpecificPermissions from '../../../query-runner/request/permissions';
import LazyStatusMessages from '../../../app-sections/StatusMessages';
import LazyStatusMessages from '../../../app-sections/StatusMessagesV9';
import LazyResponseHeaders from '../../../query-response/headers/ResponseHeaders';
import LazyAdaptiveCard from '../../../query-response/adaptive-cards/AdaptiveCard';
import LazyGraphToolkit from '../../../query-response/graph-toolkit/GraphToolkit';
Expand Down

0 comments on commit 4db27b5

Please sign in to comment.