File tree Expand file tree Collapse file tree 1 file changed +25
-24
lines changed Expand file tree Collapse file tree 1 file changed +25
-24
lines changed Original file line number Diff line number Diff line change @@ -43,31 +43,32 @@ const CoachingSession: React.FC<CoachingSessionProps> = ({
43
43
{ format ( new Date ( coachingSession . date ) , "MMMM d, yyyy h:mm a" ) }
44
44
</ div >
45
45
</ div >
46
- < DropdownMenu >
47
- < DropdownMenuTrigger asChild >
48
- < Button variant = "ghost" size = "icon" >
49
- < MoreHorizontal className = "h-4 w-4" />
46
+ < div className = "flex items-center gap-2" >
47
+ < Link href = { `/coaching-sessions/${ coachingSession . id } ` } passHref >
48
+ < Button
49
+ size = "sm"
50
+ className = "w-full sm:w-auto mt-2 sm:mt-0 text-sm px-3 py-1"
51
+ onClick = { ( ) => setCurrentCoachingSessionId ( coachingSession . id ) }
52
+ >
53
+ Join Session
50
54
</ Button >
51
- </ DropdownMenuTrigger >
52
- < DropdownMenuContent align = "end" >
53
- < DropdownMenuItem asChild >
54
- < Link
55
- href = { `/coaching-sessions/${ coachingSession . id } ` }
56
- onClick = { ( ) =>
57
- setCurrentCoachingSessionId ( coachingSession . id )
58
- }
59
- >
60
- Join Session
61
- </ Link >
62
- </ DropdownMenuItem >
63
- < DropdownMenuItem onClick = { ( ) => setUpdateDialogOpen ( true ) } >
64
- Update Session
65
- </ DropdownMenuItem >
66
- < DropdownMenuItem className = "text-destructive" >
67
- Delete Session
68
- </ DropdownMenuItem >
69
- </ DropdownMenuContent >
70
- </ DropdownMenu >
55
+ </ Link >
56
+ < DropdownMenu >
57
+ < DropdownMenuTrigger asChild >
58
+ < Button variant = "ghost" size = "icon" >
59
+ < MoreHorizontal className = "h-4 w-4" />
60
+ </ Button >
61
+ </ DropdownMenuTrigger >
62
+ < DropdownMenuContent align = "end" >
63
+ < DropdownMenuItem onClick = { ( ) => setUpdateDialogOpen ( true ) } >
64
+ Update Session
65
+ </ DropdownMenuItem >
66
+ < DropdownMenuItem className = "text-destructive" >
67
+ Delete Session
68
+ </ DropdownMenuItem >
69
+ </ DropdownMenuContent >
70
+ </ DropdownMenu >
71
+ </ div >
71
72
</ div >
72
73
</ CardHeader >
73
74
</ Card >
You can’t perform that action at this time.
0 commit comments