Added skype and telegram to GitProfile props

* Added skype and telegram to GitProfile props via PropTypes.
* Added skype and telegram to types.d.ts
This commit is contained in:
Christian Sarnataro
2023-02-15 10:03:32 +01:00
parent 1b4a87b16f
commit efaebb7892
2 changed files with 13 additions and 1 deletions

View File

@@ -255,6 +255,8 @@ GitProfile.propTypes = {
dev: PropTypes.string, dev: PropTypes.string,
stackoverflow: PropTypes.string, stackoverflow: PropTypes.string,
website: PropTypes.string, website: PropTypes.string,
skype: PropTypes.string,
telegram: PropTypes.string,
phone: PropTypes.string, phone: PropTypes.string,
email: PropTypes.string, email: PropTypes.string,
}), }),

12
types/index.d.ts vendored
View File

@@ -94,6 +94,16 @@ export interface Social {
*/ */
website?: string; website?: string;
/**
* Skype username
*/
skype?: string;
/**
* Telegram username
*/
telegram?: string;
/** /**
* Phone * Phone
*/ */
@@ -318,6 +328,6 @@ export interface GitProfileProps {
config: Config; config: Config;
} }
declare class GitProfile extends Component<GitProfileProps> {} declare class GitProfile extends Component<GitProfileProps> { }
export default GitProfile; export default GitProfile;