diff --git a/samples/react-personal-greeting/src/webparts/personalGreeting/PersonalGreetingWebPart.ts b/samples/react-personal-greeting/src/webparts/personalGreeting/PersonalGreetingWebPart.ts index 60bbf3381..2fb4bea25 100644 --- a/samples/react-personal-greeting/src/webparts/personalGreeting/PersonalGreetingWebPart.ts +++ b/samples/react-personal-greeting/src/webparts/personalGreeting/PersonalGreetingWebPart.ts @@ -9,7 +9,6 @@ import { } from '@microsoft/sp-property-pane'; import { BaseClientSideWebPart, WebPartContext } from '@microsoft/sp-webpart-base'; -import * as strings from 'PersonalGreetingWebPartStrings'; import PersonalGreeting from './components/PersonalGreeting'; import { IPersonalGreetingProps } from './components/IPersonalGreetingProps'; import { PropertyFieldColorPicker, PropertyFieldColorPickerStyle } from '@pnp/spfx-property-controls/lib/PropertyFieldColorPicker'; diff --git a/samples/react-personal-greeting/src/webparts/personalGreeting/components/PersonalGreeting.tsx b/samples/react-personal-greeting/src/webparts/personalGreeting/components/PersonalGreeting.tsx index 7cb84d501..7087f2de0 100644 --- a/samples/react-personal-greeting/src/webparts/personalGreeting/components/PersonalGreeting.tsx +++ b/samples/react-personal-greeting/src/webparts/personalGreeting/components/PersonalGreeting.tsx @@ -1,11 +1,8 @@ import * as React from 'react'; import styles from './PersonalGreeting.module.scss'; 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"; - export default class PersonalGreeting extends React.Component { public render(): React.ReactElement { @@ -17,8 +14,8 @@ export default class PersonalGreeting extends React.Component - {this.props.greetingText == null ? - + {this.props.greetingText == null ? + :
{this.props.greetingText} {this.props.context.pageContext.user.displayName}
} diff --git a/samples/react-personal-greeting/tsconfig.json b/samples/react-personal-greeting/tsconfig.json index 2554738ae..75be22bff 100644 --- a/samples/react-personal-greeting/tsconfig.json +++ b/samples/react-personal-greeting/tsconfig.json @@ -30,10 +30,11 @@ "esModuleInterop": true }, "include": [ + "src/**/*.ts", "src/**/*.tsx" ], "exclude": [ "node_modules", "lib" ] -} \ No newline at end of file +}