File tree Expand file tree Collapse file tree 7 files changed +43
-43
lines changed
edit-profile-page-handler Expand file tree Collapse file tree 7 files changed +43
-43
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ export const SocialsSection = ({ hashtag, label }: Props) => {
28
28
hoverColor = "green"
29
29
socials = { [
30
30
{
31
- icon : "twitter " ,
32
- link : "https://twitter.com/pyconit " ,
31
+ icon : "mastodon " ,
32
+ link : "https://social.python.it/@pycon " ,
33
33
rel : "me" ,
34
34
} ,
35
35
{
@@ -48,8 +48,8 @@ export const SocialsSection = ({ hashtag, label }: Props) => {
48
48
rel : "me" ,
49
49
} ,
50
50
{
51
- icon : "mastodon " ,
52
- link : "https://social.python.it/@pycon " ,
51
+ icon : "twitter " ,
52
+ link : "https://twitter.com/pyconit " ,
53
53
rel : "me" ,
54
54
} ,
55
55
] }
Original file line number Diff line number Diff line change @@ -289,8 +289,8 @@ export const CfpForm = ({
289
289
participantData . me . participant . website ,
290
290
) ;
291
291
formState . setField (
292
- "participantTwitterHandle " ,
293
- participantData . me . participant . twitterHandle ,
292
+ "participantMastodonHandle " ,
293
+ participantData . me . participant . mastodonHandle ,
294
294
) ;
295
295
formState . setField (
296
296
"participantInstagramHandle" ,
@@ -305,8 +305,8 @@ export const CfpForm = ({
305
305
participantData . me . participant . facebookUrl ,
306
306
) ;
307
307
formState . setField (
308
- "participantMastodonHandle " ,
309
- participantData . me . participant . mastodonHandle ,
308
+ "participantTwitterHandle " ,
309
+ participantData . me . participant . twitterHandle ,
310
310
) ;
311
311
formState . setField (
312
312
"speakerAvailabilities" ,
Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ const onMyProfileFetched = (data: MyEditProfileQuery, formState) => {
69
69
me . participant ?. previousTalkVideo ?? "" ,
70
70
) ;
71
71
formState . setField (
72
- "participantTwitterHandle " ,
73
- me . participant ?. twitterHandle ?? "" ,
72
+ "participantMastodonHandle " ,
73
+ me . participant ?. mastodonHandle ?? "" ,
74
74
) ;
75
75
formState . setField (
76
76
"participantInstagramHandle" ,
@@ -85,8 +85,8 @@ const onMyProfileFetched = (data: MyEditProfileQuery, formState) => {
85
85
me . participant ?. facebookUrl ?? "" ,
86
86
) ;
87
87
formState . setField (
88
- "participantMastodonHandle " ,
89
- me . participant ?. mastodonHandle ?? "" ,
88
+ "participantTwitterHandle " ,
89
+ me . participant ?. twitterHandle ?? "" ,
90
90
) ;
91
91
} ;
92
92
Original file line number Diff line number Diff line change @@ -72,7 +72,11 @@ export const Footer = () => {
72
72
</ div >
73
73
}
74
74
socials = { [
75
- { icon : "twitter" , link : "https://twitter.com/pyconit" , rel : "me" } ,
75
+ {
76
+ icon : "mastodon" ,
77
+ link : "https://social.python.it/@pycon" ,
78
+ rel : "me" ,
79
+ } ,
76
80
{
77
81
icon : "facebook" ,
78
82
link : "https://www.facebook.com/pythonitalia" ,
@@ -88,11 +92,7 @@ export const Footer = () => {
88
92
link : "https://www.linkedin.com/company/pycon-italia" ,
89
93
rel : "me" ,
90
94
} ,
91
- {
92
- icon : "mastodon" ,
93
- link : "https://social.python.it/@pycon" ,
94
- rel : "me" ,
95
- } ,
95
+ { icon : "twitter" , link : "https://twitter.com/pyconit" , rel : "me" } ,
96
96
] }
97
97
/>
98
98
</ >
Original file line number Diff line number Diff line change @@ -220,8 +220,8 @@ export const GrantForm = ({
220
220
participantData . me . participant . website ,
221
221
) ;
222
222
formState . setField (
223
- "participantTwitterHandle " ,
224
- participantData . me . participant . twitterHandle ,
223
+ "participantMastodonHandle " ,
224
+ participantData . me . participant . mastodonHandle ,
225
225
) ;
226
226
formState . setField (
227
227
"participantInstagramHandle" ,
@@ -236,8 +236,8 @@ export const GrantForm = ({
236
236
participantData . me . participant . facebookUrl ,
237
237
) ;
238
238
formState . setField (
239
- "participantMastodonHandle " ,
240
- participantData . me . participant . mastodonHandle ,
239
+ "participantTwitterHandle " ,
240
+ participantData . me . participant . twitterHandle ,
241
241
) ;
242
242
}
243
243
} , [ ] ) ;
Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ export const ParticipantInfoSection = ({
58
58
justifyContent = "end"
59
59
gap = "medium"
60
60
>
61
- { participant ?. twitterHandle && (
61
+ { participant ?. mastodonHandle && (
62
62
< Link
63
63
target = "_blank"
64
- href = { `https://twitter.com/ ${ participant . twitterHandle } ` }
64
+ href = { convertMastodonHandle ( participant . mastodonHandle ) }
65
65
>
66
- < TwitterIcon className = "w-6 h-6" />
66
+ < MastodonIcon className = "w-6 h-6" />
67
67
</ Link >
68
68
) }
69
69
@@ -76,15 +76,6 @@ export const ParticipantInfoSection = ({
76
76
</ Link >
77
77
) }
78
78
79
- { participant ?. mastodonHandle && (
80
- < Link
81
- target = "_blank"
82
- href = { convertMastodonHandle ( participant . mastodonHandle ) }
83
- >
84
- < MastodonIcon className = "w-6 h-6" />
85
- </ Link >
86
- ) }
87
-
88
79
{ participant ?. linkedinUrl && (
89
80
< Link target = "_blank" href = { participant . linkedinUrl } >
90
81
< LinkedinIcon className = "w-6 h-6" />
@@ -102,6 +93,15 @@ export const ParticipantInfoSection = ({
102
93
< WebIcon className = "w-6 h-6" />
103
94
</ Link >
104
95
) }
96
+
97
+ { participant ?. twitterHandle && (
98
+ < Link
99
+ target = "_blank"
100
+ href = { `https://twitter.com/${ participant . twitterHandle } ` }
101
+ >
102
+ < TwitterIcon className = "w-6 h-6" />
103
+ </ Link >
104
+ ) }
105
105
</ HorizontalStack >
106
106
</ VerticalStack >
107
107
</ LayoutContent >
Original file line number Diff line number Diff line change @@ -118,15 +118,6 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
118
118
errors = { getParticipantValidationError ( "website" ) }
119
119
/>
120
120
</ InputWrapper >
121
- < InputWrapper title = "Twitter" >
122
- < Input
123
- { ...text ( "participantTwitterHandle" ) }
124
- required = { false }
125
- maxLength = { 15 }
126
- placeholder = { inputPlaceholder }
127
- errors = { getParticipantValidationError ( "twitterHandle" ) }
128
- />
129
- </ InputWrapper >
130
121
< InputWrapper title = "Mastodon" >
131
122
< Input
132
123
{ ...text ( "participantMastodonHandle" ) }
@@ -163,6 +154,15 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
163
154
errors = { getParticipantValidationError ( "facebookUrl" ) }
164
155
/>
165
156
</ InputWrapper >
157
+ < InputWrapper title = "Twitter" >
158
+ < Input
159
+ { ...text ( "participantTwitterHandle" ) }
160
+ required = { false }
161
+ maxLength = { 15 }
162
+ placeholder = { inputPlaceholder }
163
+ errors = { getParticipantValidationError ( "twitterHandle" ) }
164
+ />
165
+ </ InputWrapper >
166
166
</ Grid >
167
167
</ CardPart >
168
168
</ MultiplePartsCard >
You can’t perform that action at this time.
0 commit comments