Commit b1734b8 1 parent b6a1ad4 commit b1734b8 Copy full SHA for b1734b8
File tree 6 files changed +18
-14
lines changed
6 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const SessionDetails = ({ session }: { session: Session }) => {
21
21
< div className = "pt-4 md:pt-6" >
22
22
{ session . session_image && (
23
23
< img
24
- className = "rounded-lg h-auto md:h-56 "
24
+ className = "rounded-lg h-auto"
25
25
src = { session . session_image }
26
26
alt = "session"
27
27
/>
@@ -45,11 +45,11 @@ export const SessionDetails = ({ session }: { session: Session }) => {
45
45
</ span >
46
46
) ) }
47
47
</ h4 >
48
- < p className = " text-xl md:text-2xl mt-1 font-bold" > { session . title } </ p >
48
+ < p className = "text-xl md:text-2xl mt-1 font-bold" > { session . title } </ p >
49
49
< h6 className = "text-primary dark:text-white-dark font-bold mt-4 md:mt-10 w-full" >
50
50
Session Description:
51
51
</ h6 >
52
- < p className = "p gray mt-2" > { session . description } </ p >
52
+ < p className = "p gray mt-2 break-words " > { session . description } </ p >
53
53
54
54
< div className = "w-full justify-center md:justify-start flex flex-col mt-4 md:mt-10 mb-4 lg:mb-16" >
55
55
< StarIcon isStar = { false } session = { session } />
Original file line number Diff line number Diff line change @@ -36,7 +36,9 @@ export const SessionGridCard = ({
36
36
{ schedule . is_serviceSession ? (
37
37
< img
38
38
className = "object-cover md:object-cover"
39
- src = { schedule . session_image ?? '/images/all.png' }
39
+ src = {
40
+ schedule . session_image ?? '/images/all-new.png'
41
+ }
40
42
alt = { schedule . title }
41
43
/>
42
44
) : (
@@ -48,7 +50,9 @@ export const SessionGridCard = ({
48
50
< a >
49
51
< img
50
52
className = "object-cover md:object-cover"
51
- src = { schedule . session_image ?? 'images/all.png' }
53
+ src = {
54
+ schedule . session_image ?? 'images/all-new.png'
55
+ }
52
56
alt = { schedule . title }
53
57
/>
54
58
</ a >
@@ -125,7 +129,7 @@ export const SessionGridCard = ({
125
129
}
126
130
</ div >
127
131
) : (
128
- < NoSessions />
132
+ < NoSessions key = { key } />
129
133
) )
130
134
) }
131
135
</ div >
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ const SessionListCard = ({
102
102
}
103
103
</ div >
104
104
) : (
105
- < NoSessions />
105
+ < NoSessions key = { key } />
106
106
) )
107
107
) }
108
108
</ div >
Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ export const SessionToggles: NextPage<SessionPageProps> = ({
21
21
22
22
return (
23
23
< div className = "space-x-4 md:space-x-8 w-full md:w-1/3 flex justify-end items-center" >
24
- < button type = "button" onClick = { ( ) => onChangeViewType ( false ) } >
24
+ < button type = "button" onClick = { ( ) => onChangeViewType ( true ) } >
25
25
< i
26
- className = { `fa fa-th-list text-2xl ${
27
- isGridView ? 'text-white dark:text-white-dark' : 'text-secondary'
26
+ className = { `fa fa-th text-2xl ${
27
+ ! isGridView ? 'text-white dark:text-white-dark' : 'text-secondary'
28
28
} `}
29
29
/>
30
30
</ button >
31
- < button type = "button" onClick = { ( ) => onChangeViewType ( true ) } >
31
+ < button type = "button" onClick = { ( ) => onChangeViewType ( false ) } >
32
32
< i
33
- className = { `fa fa-th text-2xl ${
34
- ! isGridView ? 'text-white dark:text-white-dark' : 'text-secondary'
33
+ className = { `fa fa-th-list text-2xl ${
34
+ isGridView ? 'text-white dark:text-white-dark' : 'text-secondary'
35
35
} `}
36
36
/>
37
37
</ button >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const MY_SESSIONS = 'droidcon_my_sessions'
9
9
10
10
export const useSession = ( { allSchedules } : { allSchedules : Schedule [ ] } ) => {
11
11
const [ showFilterSession , setShowFilterSession ] = useState ( false )
12
- const [ isGridView , setIsGridView ] = useState ( false )
12
+ const [ isGridView , setIsGridView ] = useState ( true )
13
13
const [ activeTab , setActiveTab ] = useState ( 0 )
14
14
const [ showMySessions , setShowMysessions ] = useState ( false )
15
15
const [ loading , setLoading ] = useState ( false )
You can’t perform that action at this time.
0 commit comments