Typo fixes

This commit is contained in:
Milan Holemans 2022-04-06 01:19:04 +02:00
parent 63403451ea
commit 6c73fc148b
9 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
{ {
"@microsoft/generator-sharepoint": { "@microsoft/generator-sharepoint": {
"version": "1.14.0", "version": "1.14.0",
"libraryName": "happy-birdthay", "libraryName": "happy-birthday",
"libraryId": "57890dd1-b655-4ec8-85ec-e47a9b696e7c", "libraryId": "57890dd1-b655-4ec8-85ec-e47a9b696e7c",
"environment": "spo", "environment": "spo",
"packageManager": "npm", "packageManager": "npm",

View File

@ -2,7 +2,7 @@
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json", "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/config.2.0.schema.json",
"version": "2.0", "version": "2.0",
"bundles": { "bundles": {
"happy-birdthay-web-part": { "happy-birthday-web-part": {
"components": [ "components": [
{ {
"entrypoint": "./lib/webparts/Birthdays/BirthdaysWebPart.js", "entrypoint": "./lib/webparts/Birthdays/BirthdaysWebPart.js",

View File

@ -2,6 +2,6 @@
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json", "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
"workingDir": "./release/assets/", "workingDir": "./release/assets/",
"account": "<!-- STORAGE ACCOUNT NAME -->", "account": "<!-- STORAGE ACCOUNT NAME -->",
"container": "happy-birdthay", "container": "happy-birthday",
"accessKey": "<!-- ACCESS KEY -->" "accessKey": "<!-- ACCESS KEY -->"
} }

View File

@ -1,6 +1,6 @@
@import '~office-ui-fabric-react/dist/sass/References.scss'; @import '~office-ui-fabric-react/dist/sass/References.scss';
.happyBirdthay { .happyBirthday {
.documentCard { .documentCard {
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
background-color: #ffffff; background-color: #ffffff;

View File

@ -111,7 +111,7 @@ export class HappyBirthdayCard extends React.Component<IHappyBirthdayCardProps,
this._birthdayMsg = this.state.isBirthdayToday ? (this.props.anniversary? strings.HappyAnniversaryMsg: strings.HappyBirthdayMsg) : (this.props.anniversary? strings.NextAnniversaryMsg: strings.NextBirthdayMsg); this._birthdayMsg = this.state.isBirthdayToday ? (this.props.anniversary? strings.HappyAnniversaryMsg: strings.HappyBirthdayMsg) : (this.props.anniversary? strings.NextAnniversaryMsg: strings.NextBirthdayMsg);
return ( return (
<div className={styles.happyBirdthay}> <div className={styles.happyBirthday}>
<div className={styles.documentCardWrapper}> <div className={styles.documentCardWrapper}>
<div className={styles.documentCard}> <div className={styles.documentCard}>
<Image <Image

View File

@ -1,6 +1,6 @@
define([], function() { define([], function() {
return { return {
"BirdthayControlDefaultDay": "Today", "BirthdayControlDefaultDay": "Today",
"HappyBirthdayMsg": "Happy Birthday!", "HappyBirthdayMsg": "Happy Birthday!",
"NextBirthdayMsg": "Next Birthday", "NextBirthdayMsg": "Next Birthday",
"HappyAnniversaryMsg": "Happy Anniversary!", "HappyAnniversaryMsg": "Happy Anniversary!",

View File

@ -1,5 +1,5 @@
declare interface IControlStrings { declare interface IControlStrings {
BirdthayControlDefaultDay: string, BirthdayControlDefaultDay: string,
HappyBirthdayMsg: string, HappyBirthdayMsg: string,
NextBirthdayMsg: string, NextBirthdayMsg: string,
HappyAnniversaryMsg: string, HappyAnniversaryMsg: string,

View File

@ -3,7 +3,7 @@ import styles from './HappyBirthday.module.scss';
import { IHappyBirthdayProps } from './IHappyBirthdayProps'; import { IHappyBirthdayProps } from './IHappyBirthdayProps';
import { IHappbirthdayState } from './IHappybirthdayState'; import { IHappbirthdayState } from './IHappybirthdayState';
import { IUser } from './IUser'; import { IUser } from './IUser';
import HappyBirdthayCard from '../../controls/happyBirthdayCard/HappyBirthdayCard'; import HappyBirthdayCard from '../../controls/happyBirthdayCard/HappyBirthdayCard';
import * as moment from 'moment'; import * as moment from 'moment';
export class HappyBirthday extends React.Component<IHappyBirthdayProps, IHappbirthdayState> { export class HappyBirthday extends React.Component<IHappyBirthdayProps, IHappbirthdayState> {
@ -15,7 +15,7 @@ export class HappyBirthday extends React.Component<IHappyBirthdayProps, IHappbir
this.props.users.map((user: IUser) => { this.props.users.map((user: IUser) => {
return ( return (
<div className={styles.container}> <div className={styles.container}>
<HappyBirdthayCard userName={user.userName} <HappyBirthdayCard userName={user.userName}
jobDescription={user.jobDescription} jobDescription={user.jobDescription}
birthday={moment(user.birthday, ["MM-DD-YYYY", "YYYY-MM-DD", "DD/MM/YYYY", "MM/DD/YYYY"]).format('Do MMMM')} birthday={moment(user.birthday, ["MM-DD-YYYY", "YYYY-MM-DD", "DD/MM/YYYY", "MM/DD/YYYY"]).format('Do MMMM')}
anniversary={user.anniversary} anniversary={user.anniversary}

View File

@ -1,7 +1,7 @@
{ {
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.2/MicrosoftTeams.schema.json", "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.2/MicrosoftTeams.schema.json",
"manifestVersion": "1.2", "manifestVersion": "1.2",
"packageName": "HappyBirdthayAnniversary", "packageName": "HappyBirthdayAnniversary",
"id": "b0069b7e-8ec8-4e14-a76c-0c8bcb33993e", "id": "b0069b7e-8ec8-4e14-a76c-0c8bcb33993e",
"version": "0.1", "version": "0.1",
"developer": { "developer": {
@ -14,8 +14,8 @@
"short": "HappyBirthdayAnniversary" "short": "HappyBirthdayAnniversary"
}, },
"description": { "description": {
"short": "HappyBirdthay & anniversary description", "short": "HappyBirthday & anniversary description",
"full": "HappyBirdthay & anniversary description" "full": "HappyBirthday & anniversary description"
}, },
"icons": { "icons": {
"outline": "tab20x20.png", "outline": "tab20x20.png",