Fixed tsconfig issue

This commit is contained in:
Hugo Bernier 2020-10-18 16:53:40 -04:00
parent 9267b13f70
commit 9cdcb4e4d2
3 changed files with 4 additions and 7 deletions

View File

@ -9,7 +9,6 @@ import {
} from '@microsoft/sp-property-pane'; } from '@microsoft/sp-property-pane';
import { BaseClientSideWebPart, WebPartContext } from '@microsoft/sp-webpart-base'; import { BaseClientSideWebPart, WebPartContext } from '@microsoft/sp-webpart-base';
import * as strings from 'PersonalGreetingWebPartStrings';
import PersonalGreeting from './components/PersonalGreeting'; import PersonalGreeting from './components/PersonalGreeting';
import { IPersonalGreetingProps } from './components/IPersonalGreetingProps'; import { IPersonalGreetingProps } from './components/IPersonalGreetingProps';
import { PropertyFieldColorPicker, PropertyFieldColorPickerStyle } from '@pnp/spfx-property-controls/lib/PropertyFieldColorPicker'; import { PropertyFieldColorPicker, PropertyFieldColorPickerStyle } from '@pnp/spfx-property-controls/lib/PropertyFieldColorPicker';

View File

@ -1,11 +1,8 @@
import * as React from 'react'; import * as React from 'react';
import styles from './PersonalGreeting.module.scss'; import styles from './PersonalGreeting.module.scss';
import { IPersonalGreetingProps } from './IPersonalGreetingProps'; import { IPersonalGreetingProps } from './IPersonalGreetingProps';
import { escape } from '@microsoft/sp-lodash-subset';
import { CommandBar, ICommandBarItemProps } from 'office-ui-fabric-react/lib/CommandBar';
import { Placeholder } from "@pnp/spfx-controls-react/lib/Placeholder"; import { Placeholder } from "@pnp/spfx-controls-react/lib/Placeholder";
export default class PersonalGreeting extends React.Component<IPersonalGreetingProps, {}> { export default class PersonalGreeting extends React.Component<IPersonalGreetingProps, {}> {
public render(): React.ReactElement<IPersonalGreetingProps> { public render(): React.ReactElement<IPersonalGreetingProps> {
@ -17,8 +14,8 @@ export default class PersonalGreeting extends React.Component<IPersonalGreetingP
return ( return (
<div className={ styles.personalGreeting }> <div className={ styles.personalGreeting }>
{this.props.greetingText == null ? {this.props.greetingText == null ?
<Placeholder iconName='Edit' iconText='Configure the web part' description='Please configure the web part' buttonLabel='Configure' onConfigure={this._onConfigure} /> <Placeholder iconName='Edit' iconText='Configure the web part' description='Please configure the web part' buttonLabel='Configure' onConfigure={this._onConfigure} />
: <div className={ styles.title } style={custStyles}>{this.props.greetingText} {this.props.context.pageContext.user.displayName}</div> : <div className={ styles.title } style={custStyles}>{this.props.greetingText} {this.props.context.pageContext.user.displayName}</div>
} }
</div> </div>

View File

@ -30,10 +30,11 @@
"esModuleInterop": true "esModuleInterop": true
}, },
"include": [ "include": [
"src/**/*.ts",
"src/**/*.tsx" "src/**/*.tsx"
], ],
"exclude": [ "exclude": [
"node_modules", "node_modules",
"lib" "lib"
] ]
} }