@@ -39,26 +39,26 @@ const followButtonStyles = (isFollowing: boolean) => css`
3939 border-radius : ${ space [ 5 ] } px;
4040 border : 1px solid
4141 ${ isFollowing
42- ? palette ( '--follow-button-border-following' )
43- : palette ( '--follow-button-border' ) } ;
42+ ? palette ( '--contributor- follow-button-border-following' )
43+ : palette ( '--contributor- follow-button-border' ) } ;
4444 background : ${ isFollowing
4545 ? 'transparent'
46- : palette ( '--follow-accent-color' ) } ;
46+ : palette ( '--contributor- follow-accent-color' ) } ;
4747 color : ${ isFollowing
48- ? palette ( '--follow-button-text' )
49- : palette ( '--follow-button-text-not-following' ) } ;
48+ ? palette ( '--contributor- follow-button-text' )
49+ : palette ( '--contributor- follow-button-text-not-following' ) } ;
5050 font-weight : 700 ;
5151 cursor : pointer;
5252
5353 svg {
5454 width : 24px ;
5555 height : 24px ;
5656 fill : ${ isFollowing
57- ? palette ( '--follow-button-text' )
58- : palette ( '--follow-button-text-not-following' ) } ;
57+ ? palette ( '--contributor- follow-button-text' )
58+ : palette ( '--contributor- follow-button-text-not-following' ) } ;
5959 stroke : ${ isFollowing
60- ? palette ( '--follow-button-text' )
61- : palette ( '--follow-button-text-not-following' ) } ;
60+ ? palette ( '--contributor- follow-button-text' )
61+ : palette ( '--contributor- follow-button-text-not-following' ) } ;
6262 }
6363` ;
6464
@@ -81,7 +81,7 @@ const FollowButton = ({ isFollowing, onClickHandler }: FollowButtonProps) => {
8181
8282// -- notifications --
8383
84- const notificationsStatusStyles = css `
84+ const notificationAlertStyles = css `
8585 ${ textSans15 }
8686 color : ${ palette ( '--follow-text' ) } ;
8787 background : none;
@@ -94,7 +94,7 @@ const notificationsStatusStyles = css`
9494 width : 100% ;
9595` ;
9696
97- const notificationsStatusContainerStyles = css `
97+ const notificationAlertRowStyles = css `
9898 display : flex;
9999 column-gap : ${ space [ 6 ] } px;
100100 justify-content : space-between;
@@ -110,7 +110,7 @@ const notificationIconStyles = css`
110110 margin-top : -${ space [ 1 ] - 1 } px;
111111 }
112112` ;
113- const notificationIconTextWrapperStyles = css `
113+ const notificationLabelStyles = css `
114114 display : flex;
115115 align-items : flex-start;
116116 ${ textSans12 }
@@ -127,15 +127,15 @@ const toggleSwitchContainerStyles = css`
127127 }
128128` ;
129129
130- const NotificationsStatus = ( {
130+ const NotificationAlert = ( {
131131 isFollowing,
132132 onClickHandler,
133133 displayName,
134134} : FollowButtonProps & { displayName ?: string } ) => {
135135 return (
136- < div css = { notificationsStatusStyles } >
137- < div css = { notificationsStatusContainerStyles } >
138- < div css = { notificationIconTextWrapperStyles } >
136+ < div css = { notificationAlertStyles } >
137+ < div css = { notificationAlertRowStyles } >
138+ < div css = { notificationLabelStyles } >
139139 < div css = { notificationIconStyles } >
140140 < SvgNotificationsOn size = "small" />
141141 </ div >
@@ -155,22 +155,22 @@ const NotificationsStatus = ({
155155 ) ;
156156} ;
157157
158- const containerStyles = css `
158+ const followBlockStyles = css `
159159 display : flex;
160160 flex-direction : column;
161161 width : 100% ;
162162 align-items : flex-start;
163163` ;
164164
165- type ContainerProps = {
165+ type FollowBlockProps = {
166166 contributorId : string ;
167167 displayName : string ;
168168} ;
169169
170170export const ContributorFollowBlock = ( {
171171 contributorId,
172172 displayName,
173- } : ContainerProps ) => {
173+ } : FollowBlockProps ) => {
174174 const [ isFollowingNotifications , setIsFollowingNotifications ] = useState <
175175 boolean | undefined
176176 > ( undefined ) ;
@@ -317,7 +317,7 @@ export const ContributorFollowBlock = ({
317317 }
318318
319319 return (
320- < div css = { containerStyles } >
320+ < div css = { followBlockStyles } >
321321 < FollowButton
322322 isFollowing = { isFollowingContributor ?? false }
323323 onClickHandler = {
@@ -329,7 +329,7 @@ export const ContributorFollowBlock = ({
329329 { isFollowingContributor && (
330330 < div >
331331 < StraightLines count = { 1 } />
332- < NotificationsStatus
332+ < NotificationAlert
333333 isFollowing = { isFollowingNotifications ?? false }
334334 onClickHandler = {
335335 ! isUndefined ( isFollowingNotifications )
0 commit comments