diff --git a/src/Explorer/Controls/CommandButton/CommandButtonComponent.tsx b/src/Explorer/Controls/CommandButton/CommandButtonComponent.tsx index d9dc30214..57d1edc2b 100644 --- a/src/Explorer/Controls/CommandButton/CommandButtonComponent.tsx +++ b/src/Explorer/Controls/CommandButton/CommandButtonComponent.tsx @@ -260,13 +260,18 @@ export class CommandButtonComponent extends React.Component) => this.commandClickCallback(e)} >
- if (this.props.iconName) { + if (this.props.iconName){" "} + {
- +
- } else { - {this.props.iconAlt} - } + }{" "} + else {{this.props.iconAlt}} {CommandButtonComponent.renderLabel(this.props)}
diff --git a/src/Explorer/Controls/SupportPaneComponent/SupportPaneComponent.tsx b/src/Explorer/Controls/SupportPaneComponent/SupportPaneComponent.tsx index 67d4f97f0..ed37b1ef5 100644 --- a/src/Explorer/Controls/SupportPaneComponent/SupportPaneComponent.tsx +++ b/src/Explorer/Controls/SupportPaneComponent/SupportPaneComponent.tsx @@ -14,21 +14,18 @@ export interface SupportPaneComponentProps { export class SupportPaneComponent extends React.Component { private readonly userId: string = _.uniqueId(); - constructor(props: SupportPaneComponentProps) { super(props); - } public render(): JSX.Element { const styleOptions = { bubbleBackground: "rgba(0, 0, 255, .1)", - bubbleFromUserBackground: "rgba(0, 255, 0, .1)" + bubbleFromUserBackground: "rgba(0, 255, 0, .1)", }; const directLine = createDirectLine({ token: this.props.directLineToken }); - const dl = - { + const dl = { ...directLine, postActivity: (activity: Activity) => { activity.channelData.token = this.props.userToken; @@ -36,11 +33,10 @@ export class SupportPaneComponent extends React.Component; - } } diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index bc2f60db6..93176266d 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -21,7 +21,7 @@ import { ContainerConnectionInfo, IPhoenixConnectionInfoResult, IProvisionData, - IResponse + IResponse, } from "../Contracts/DataModels"; import * as ViewModels from "../Contracts/ViewModels"; import { GitHubOAuthService } from "../GitHub/GitHubOAuthService"; @@ -477,7 +477,7 @@ export default class Explorer { headers: { [Constants.HttpHeaders.authorization]: authorizationHeader.token, Accept: "application/json", - [Constants.HttpHeaders.contentType]: "application/json" + [Constants.HttpHeaders.contentType]: "application/json", }, }); diff --git a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx index cac221d15..3dc7d158e 100644 --- a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx +++ b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx @@ -202,20 +202,25 @@ export function createControlCommandBarButtons(container: Explorer): CommandButt iconName: "ChatBot", iconAlt: label, onCommandClick: () => { - useSidePanel.getState().openSidePanel("Chat Assistant (Beta)", ); + useSidePanel + .getState() + .openSidePanel( + "Chat Assistant (Beta)", + + ); }, commandButtonLabel: null, ariaLabel: label, tooltipText: label, hasPopup: true, disabled: false, - className: "fonticoncustom" + className: "fonticoncustom", }; buttons.push(supportPaneButton); }