File tree Expand file tree Collapse file tree 1 file changed +15
-20
lines changed Expand file tree Collapse file tree 1 file changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,18 @@ export function Calendar(props: {
24
24
const { selectedActivities, viewedActivity, state } = props ;
25
25
26
26
const renderEvent = ( { event } : EventContentArg ) => {
27
+ const TitleText = ( ) => (
28
+ < Text
29
+ fontSize = "sm"
30
+ fontWeight = "medium"
31
+ overflow = "hidden"
32
+ textOverflow = "clip"
33
+ whiteSpace = "nowrap"
34
+ >
35
+ { event . title }
36
+ </ Text >
37
+ ) ;
38
+
27
39
return (
28
40
< Box
29
41
color = { event . textColor }
@@ -37,27 +49,10 @@ export function Calendar(props: {
37
49
content = { event . extendedProps . activity . name }
38
50
portalled
39
51
positioning = { { placement : "top" } }
40
- >
41
- < Text
42
- fontSize = "sm"
43
- fontWeight = "medium"
44
- overflow = "hidden"
45
- textOverflow = "clip"
46
- whiteSpace = "nowrap"
47
- >
48
- { event . title }
49
- </ Text >
50
- </ Tooltip >
52
+ children = { TitleText ( ) }
53
+ />
51
54
) : (
52
- < Text
53
- fontSize = "sm"
54
- fontWeight = "medium"
55
- overflow = "hidden"
56
- textOverflow = "clip"
57
- whiteSpace = "nowrap"
58
- >
59
- { event . title }
60
- </ Text >
55
+ < TitleText />
61
56
) }
62
57
< Text fontSize = "xs" > { event . extendedProps . room } </ Text >
63
58
</ Box >
You can’t perform that action at this time.
0 commit comments