@@ -17,16 +17,14 @@ import { EAppHostName } from "../../../controls/userPicker/constants/EAppHostnam
1717import { createV9Theme } from "@fluentui/react-migration-v8-v9" ;
1818
1919export interface ICalendarProps {
20-
2120 hasTeamsContext : boolean ;
2221 themeString : string ;
23- theme ?: Partial < Theme > | undefined ;
22+ theme ?: Partial < Theme > | undefined ;
2423 context : BaseComponentContext ;
2524 title : string ;
2625 appHostName : EAppHostName ;
2726}
2827
29-
3028export const mockEvents : IEvent [ ] = [
3129 {
3230 id : "1" ,
@@ -41,7 +39,7 @@ export const mockEvents: IEvent[] = [
4139 type : "Work" ,
4240 isOnlineMeeting : true ,
4341 description : "Daily team standup to discuss tasks and blockers." ,
44- enableOnHouver : true ,
42+ enableOnHover : true ,
4543 imageUrl : "https://via.placeholder.com/150" ,
4644 color : "blue" ,
4745 webLink : "https://outlook.com" ,
@@ -56,7 +54,7 @@ export const mockEvents: IEvent[] = [
5654 importance : "High" ,
5755 sensitivity : "Confidential" ,
5856 description : "Final deadline for the Q1 marketing campaign submission." ,
59- enableOnHouver : false ,
57+ enableOnHover : false ,
6058 color : "red" ,
6159 webLink : "https://outlook.com" ,
6260 } ,
@@ -73,18 +71,16 @@ export const mockEvents: IEvent[] = [
7371 name : "John Doe" ,
7472 email : "joao.j.mendes@nuvemerudita.com" ,
7573 id : "567891" ,
76-
7774 } ,
7875 {
7976 name : "Jane Smith" ,
8077 email : "geral@nuvemerudita.com" ,
8178 id : "987654" ,
82-
8379 } ,
8480 ] ,
8581 importance : "Medium" ,
8682 description : "Quarterly review meeting with ABC Corp." ,
87- enableOnHouver : true ,
83+ enableOnHover : true ,
8884 color : "gold" ,
8985 webLink : "https://outlook.com" ,
9086 } ,
@@ -96,7 +92,7 @@ export const mockEvents: IEvent[] = [
9692 category : "Break" ,
9793 importance : "Low" ,
9894 description : "Time to relax and enjoy some food!" ,
99- enableOnHouver : false ,
95+ enableOnHover : false ,
10096 color : "cornflower" ,
10197 webLink : null ,
10298 } ,
@@ -110,7 +106,7 @@ export const mockEvents: IEvent[] = [
110106 importance : "High" ,
111107 sensitivity : "Public" ,
112108 description : "Quarterly town hall with leadership updates." ,
113- enableOnHouver : true ,
109+ enableOnHover : true ,
114110 imageUrl : "https://via.placeholder.com/150" ,
115111 webLink : "https://outlook.com" ,
116112 color : "seafoam" ,
@@ -128,18 +124,16 @@ export const mockEvents: IEvent[] = [
128124 name : "Alex Johnson" ,
129125 email : "alex.johnson@example.com" ,
130126 id : "23456" ,
131-
132127 } ,
133128 {
134129 name : "Maria Lee" ,
135130 email : "maria.lee@example.com" ,
136131 id : "78900" ,
137-
138132 } ,
139133 ] ,
140134 importance : "Medium" ,
141135 description : "Weekly update call with the dev team." ,
142- enableOnHouver : true ,
136+ enableOnHover : true ,
143137 color : "peach" ,
144138 webLink : "https://outlook.com" ,
145139 } ,
@@ -152,7 +146,7 @@ export const mockEvents: IEvent[] = [
152146 location : "Downtown Convention Center" ,
153147 importance : "High" ,
154148 description : "Meet with top industry leaders and innovators." ,
155- enableOnHouver : true ,
149+ enableOnHover : true ,
156150 imageUrl : "https://via.placeholder.com/150" ,
157151 webLink : "https://outlook.com" ,
158152 color : "purple" ,
@@ -167,7 +161,7 @@ export const mockEvents: IEvent[] = [
167161 importance : "High" ,
168162 sensitivity : "Confidential" ,
169163 description : "Review of financial reports and upcoming projections." ,
170- enableOnHouver : true ,
164+ enableOnHover : true ,
171165 imageUrl : "https://via.placeholder.com/150" ,
172166 webLink : "https://outlook.com" ,
173167 color : "steel" ,
@@ -181,7 +175,7 @@ export const mockEvents: IEvent[] = [
181175 location : "Manager’s Office" ,
182176 importance : "Medium" ,
183177 description : "Weekly check-in with direct manager." ,
184- enableOnHouver : true ,
178+ enableOnHover : true ,
185179 color : "lavender" ,
186180 webLink : "https://outlook.com" ,
187181 } ,
@@ -195,30 +189,30 @@ export const mockEvents: IEvent[] = [
195189 location : "Webex" ,
196190 importance : "Medium" ,
197191 description : "An in-depth look at AI trends for the upcoming year." ,
198- enableOnHouver : true ,
192+ enableOnHover : true ,
199193 imageUrl : "https://via.placeholder.com/150" ,
200194 color : "magenta" ,
201195 } ,
202196] ;
203197
204198export const TestCalendarControl : React . FunctionComponent < ICalendarProps > = (
205- props : React . PropsWithChildren < ICalendarProps >
199+ props : React . PropsWithChildren < ICalendarProps > ,
206200) => {
207201 const { theme, themeString, hasTeamsContext } = props ;
208202
209203 const [ FUI9theme , setFUI9theme ] = React . useState < Partial < Theme > | undefined > (
210- undefined
204+ undefined ,
211205 ) ;
212206
213207 const setTheme = React . useCallback ( ( ) : Partial < Theme > => {
214208 if ( hasTeamsContext ) {
215209 return themeString === "dark"
216210 ? teamsDarkTheme
217211 : themeString === "contrast"
218- ? teamsHighContrastTheme
219- : {
220- ...teamsLightTheme ,
221- } ;
212+ ? teamsHighContrastTheme
213+ : {
214+ ...teamsLightTheme ,
215+ } ;
222216 } else {
223217 const nthme = createV9Theme ( theme as never ) ;
224218
@@ -244,7 +238,6 @@ export const TestCalendarControl: React.FunctionComponent<ICalendarProps> = (
244238 onMonthChange = { ( date : Date ) => console . log ( "month" , date ) }
245239 onWeekChange = { ( date : Date ) => console . log ( "week" , date ) }
246240 onViewChange = { ( view : string ) => console . log ( "view" , view ) }
247-
248241 />
249242 </ FluentProvider >
250243 </ IdPrefixProvider >
0 commit comments