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) => {
2828 hoverColor = "green"
2929 socials = { [
3030 {
31- icon : "twitter " ,
32- link : "https://twitter.com/pyconit " ,
31+ icon : "mastodon " ,
32+ link : "https://social.python.it/@pycon " ,
3333 rel : "me" ,
3434 } ,
3535 {
@@ -48,8 +48,8 @@ export const SocialsSection = ({ hashtag, label }: Props) => {
4848 rel : "me" ,
4949 } ,
5050 {
51- icon : "mastodon " ,
52- link : "https://social.python.it/@pycon " ,
51+ icon : "twitter " ,
52+ link : "https://twitter.com/pyconit " ,
5353 rel : "me" ,
5454 } ,
5555 ] }
Original file line number Diff line number Diff line change @@ -289,8 +289,8 @@ export const CfpForm = ({
289289 participantData . me . participant . website ,
290290 ) ;
291291 formState . setField (
292- "participantTwitterHandle " ,
293- participantData . me . participant . twitterHandle ,
292+ "participantMastodonHandle " ,
293+ participantData . me . participant . mastodonHandle ,
294294 ) ;
295295 formState . setField (
296296 "participantInstagramHandle" ,
@@ -305,8 +305,8 @@ export const CfpForm = ({
305305 participantData . me . participant . facebookUrl ,
306306 ) ;
307307 formState . setField (
308- "participantMastodonHandle " ,
309- participantData . me . participant . mastodonHandle ,
308+ "participantTwitterHandle " ,
309+ participantData . me . participant . twitterHandle ,
310310 ) ;
311311 formState . setField (
312312 "speakerAvailabilities" ,
Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ const onMyProfileFetched = (data: MyEditProfileQuery, formState) => {
6969 me . participant ?. previousTalkVideo ?? "" ,
7070 ) ;
7171 formState . setField (
72- "participantTwitterHandle " ,
73- me . participant ?. twitterHandle ?? "" ,
72+ "participantMastodonHandle " ,
73+ me . participant ?. mastodonHandle ?? "" ,
7474 ) ;
7575 formState . setField (
7676 "participantInstagramHandle" ,
@@ -85,8 +85,8 @@ const onMyProfileFetched = (data: MyEditProfileQuery, formState) => {
8585 me . participant ?. facebookUrl ?? "" ,
8686 ) ;
8787 formState . setField (
88- "participantMastodonHandle " ,
89- me . participant ?. mastodonHandle ?? "" ,
88+ "participantTwitterHandle " ,
89+ me . participant ?. twitterHandle ?? "" ,
9090 ) ;
9191} ;
9292
Original file line number Diff line number Diff line change @@ -72,7 +72,11 @@ export const Footer = () => {
7272 </ div >
7373 }
7474 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+ } ,
7680 {
7781 icon : "facebook" ,
7882 link : "https://www.facebook.com/pythonitalia" ,
@@ -88,11 +92,7 @@ export const Footer = () => {
8892 link : "https://www.linkedin.com/company/pycon-italia" ,
8993 rel : "me" ,
9094 } ,
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" } ,
9696 ] }
9797 />
9898 </ >
Original file line number Diff line number Diff line change @@ -220,8 +220,8 @@ export const GrantForm = ({
220220 participantData . me . participant . website ,
221221 ) ;
222222 formState . setField (
223- "participantTwitterHandle " ,
224- participantData . me . participant . twitterHandle ,
223+ "participantMastodonHandle " ,
224+ participantData . me . participant . mastodonHandle ,
225225 ) ;
226226 formState . setField (
227227 "participantInstagramHandle" ,
@@ -236,8 +236,8 @@ export const GrantForm = ({
236236 participantData . me . participant . facebookUrl ,
237237 ) ;
238238 formState . setField (
239- "participantMastodonHandle " ,
240- participantData . me . participant . mastodonHandle ,
239+ "participantTwitterHandle " ,
240+ participantData . me . participant . twitterHandle ,
241241 ) ;
242242 }
243243 } , [ ] ) ;
Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ export const ParticipantInfoSection = ({
5858 justifyContent = "end"
5959 gap = "medium"
6060 >
61- { participant ?. twitterHandle && (
61+ { participant ?. mastodonHandle && (
6262 < Link
6363 target = "_blank"
64- href = { `https://twitter.com/ ${ participant . twitterHandle } ` }
64+ href = { convertMastodonHandle ( participant . mastodonHandle ) }
6565 >
66- < TwitterIcon className = "w-6 h-6" />
66+ < MastodonIcon className = "w-6 h-6" />
6767 </ Link >
6868 ) }
6969
@@ -76,15 +76,6 @@ export const ParticipantInfoSection = ({
7676 </ Link >
7777 ) }
7878
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-
8879 { participant ?. linkedinUrl && (
8980 < Link target = "_blank" href = { participant . linkedinUrl } >
9081 < LinkedinIcon className = "w-6 h-6" />
@@ -102,6 +93,15 @@ export const ParticipantInfoSection = ({
10293 < WebIcon className = "w-6 h-6" />
10394 </ Link >
10495 ) }
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+ ) }
105105 </ HorizontalStack >
106106 </ VerticalStack >
107107 </ LayoutContent >
Original file line number Diff line number Diff line change @@ -118,15 +118,6 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
118118 errors = { getParticipantValidationError ( "website" ) }
119119 />
120120 </ 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 >
130121 < InputWrapper title = "Mastodon" >
131122 < Input
132123 { ...text ( "participantMastodonHandle" ) }
@@ -163,6 +154,15 @@ export const PublicProfileCard = <T extends ParticipantFormFields>({
163154 errors = { getParticipantValidationError ( "facebookUrl" ) }
164155 />
165156 </ 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 >
166166 </ Grid >
167167 </ CardPart >
168168 </ MultiplePartsCard >
You can’t perform that action at this time.
0 commit comments