diff --git a/samples/react-avatar/README.md b/samples/react-avatar/README.md
index 1c1045db9..a065f3d26 100644
--- a/samples/react-avatar/README.md
+++ b/samples/react-avatar/README.md
@@ -3,8 +3,7 @@
## Summary
This is a sample web part that helps user create their avatar and save as profile picture. User can even download their avatar as PNG file. This web part can be useful in Intranet to help user create their avatar and save it as profile picture.
-
-##
+
![directory](/samples/react-avatar/assets/reactAvatarOutcome.gif)
## Features
@@ -76,6 +75,7 @@ Version|Date|Comments
-------|----|--------
1.0.0|August 1, 2020|Initial release
1.0.1|October 20, 2020|Update to SPFx 1.11.0
+2.0.0|November 18, 2022|Added hat color, facial hair color, background color support
## Minimal Path to Awesome
@@ -89,10 +89,24 @@ Version|Date|Comments
> This sample can also be opened with [VS Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview). Visit https://aka.ms/spfx-devcontainer for further instructions.
+## Help
+
+We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.
+
+If you're having issues building the solution, please run [spfx doctor](https://pnp.github.io/cli-microsoft365/cmd/spfx/spfx-doctor/) from within the solution folder to diagnose incompatibility issues with your environment.
+
+You can try looking at [issues related to this sample](https://github.com/pnp/sp-dev-fx-webparts/issues?q=label%3A%22sample%3A%20react-avatar%22) to see if anybody else is having the same issues.
+
+You can also try looking at [discussions related to this sample](https://github.com/pnp/sp-dev-fx-webparts/discussions?discussions_q=react-avatar) and see what the community is saying.
+
+If you encounter any issues using this sample, [create a new issue](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected%2Csample%3A%20react-avatar&template=bug-report.yml&sample=react-avatar&authors=@kunj-sangani&title=react-avatar%20-%20).
+
+For questions regarding this sample, [create a new question](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aquestion%2Csample%3A%20react-avatar&template=question.yml&sample=react-avatar&authors=@kunj-sangani&title=react-avatar%20-%20).
+
+Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/sp-dev-fx-webparts/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Aenhancement%2Csample%3A%20react-avatar&template=suggestion.yml&sample=react-avatar&authors=@kunj-sangani&title=react-avatar%20-%20).
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
-
diff --git a/samples/react-avatar/assets/sample.json b/samples/react-avatar/assets/sample.json
index 5500c585d..febe332fd 100644
--- a/samples/react-avatar/assets/sample.json
+++ b/samples/react-avatar/assets/sample.json
@@ -9,7 +9,7 @@
"This is a sample web part that helps user create their avatar and save as profile picture. User can even download their avatar as PNG file. This web part can be useful in Intranet to help user create their avatar and save it as profile picture."
],
"creationDateTime": "2020-08-01",
- "updateDateTime": "2020-08-01",
+ "updateDateTime": "2022-11-18",
"products": [
"SharePoint"
],
diff --git a/samples/react-avatar/src/webparts/avatarGenerator/components/AvatarGenerator.tsx b/samples/react-avatar/src/webparts/avatarGenerator/components/AvatarGenerator.tsx
index 95e2c0bd0..28830a17f 100644
--- a/samples/react-avatar/src/webparts/avatarGenerator/components/AvatarGenerator.tsx
+++ b/samples/react-avatar/src/webparts/avatarGenerator/components/AvatarGenerator.tsx
@@ -1,3 +1,5 @@
+/* global _topvar, var2 */
+
import * as PropTypes from 'prop-types';
import * as React from 'react';
import styles from './AvatarGenerator.module.scss';
@@ -18,6 +20,8 @@ import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogTitle from '@material-ui/core/DialogTitle';
+
+
const options: IChoiceGroupOption[] = [
{ key: AvatarStyle.Circle, text: 'Circle' },
{ key: AvatarStyle.Transparent, text: 'Transparent' }
@@ -201,16 +205,20 @@ export default class AvatarGenerator extends React.Component {
return (
{
+
var selectedData = this.optionContext["_data"];
selectedData[`${option.key}`] = type;
- this.optionContext.setData(selectedData as any);
- }}
+ this.optionContext.setData(selectedData as any);
+ let _topvar = "LongHairFro";
+ }}
>