@@ -12,8 +12,8 @@ import {
12
12
Flex ,
13
13
JUSTIFY_SPACE_AROUND ,
14
14
JUSTIFY_SPACE_BETWEEN ,
15
- NewPrimaryBtn ,
16
- NewSecondaryBtn ,
15
+ PrimaryButton ,
16
+ SecondaryButton ,
17
17
SPACING ,
18
18
StyledText ,
19
19
} from '@opentrons/components'
@@ -62,18 +62,7 @@ const PlaceholderError = ({
62
62
export const RELEASE_NOTES_URL_BASE =
63
63
'https://github.com/Opentrons/opentrons/releases/tag/v'
64
64
const UPDATE_ERROR = 'Update Error'
65
- const FOOTER_BUTTON_STYLE = css `
66
- text-transform : lowercase;
67
- padding-left : ${ SPACING . spacing16 } ;
68
- padding-right : ${ SPACING . spacing16 } ;
69
- border-radius : ${ BORDERS . borderRadius8 } ;
70
- margin-top : ${ SPACING . spacing16 } ;
71
- margin-bottom : ${ SPACING . spacing16 } ;
72
65
73
- & : first-letter {
74
- text-transform : uppercase;
75
- }
76
- `
77
66
const UpdateAppBanner = styled ( Banner ) `
78
67
border: none;
79
68
`
@@ -122,7 +111,13 @@ export function UpdateAppModal(props: UpdateAppModalProps): JSX.Element {
122
111
removeActiveAppUpdateToast ( )
123
112
124
113
const appUpdateFooter = (
125
- < Flex alignItems = { ALIGN_CENTER } justifyContent = { JUSTIFY_SPACE_BETWEEN } >
114
+ < Flex
115
+ alignItems = { ALIGN_CENTER }
116
+ justifyContent = { JUSTIFY_SPACE_BETWEEN }
117
+ paddingY = { SPACING . spacing16 }
118
+ borderTop = { BORDERS . lineBorder }
119
+ borderColor = { COLORS . grey30 }
120
+ >
126
121
< ExternalLink
127
122
href = { `${ RELEASE_NOTES_URL_BASE } ${ availableAppUpdateVersion } ` }
128
123
css = { css `
@@ -134,20 +129,18 @@ export function UpdateAppModal(props: UpdateAppModalProps): JSX.Element {
134
129
{ t ( 'release_notes' ) }
135
130
</ ExternalLink >
136
131
< Flex alignItems = { ALIGN_CENTER } justifyContent = { JUSTIFY_SPACE_AROUND } >
137
- < NewSecondaryBtn
132
+ < SecondaryButton
138
133
onClick = { handleRemindMeLaterClick }
139
134
marginRight = { SPACING . spacing8 }
140
- css = { FOOTER_BUTTON_STYLE }
141
135
>
142
136
{ t ( 'remind_later' ) }
143
- </ NewSecondaryBtn >
144
- < NewPrimaryBtn
137
+ </ SecondaryButton >
138
+ < PrimaryButton
145
139
onClick = { ( ) => dispatch ( downloadShellUpdate ( ) ) }
146
140
marginRight = { SPACING . spacing12 }
147
- css = { FOOTER_BUTTON_STYLE }
148
141
>
149
142
{ t ( 'update_app_now' ) }
150
- </ NewPrimaryBtn >
143
+ </ PrimaryButton >
151
144
</ Flex >
152
145
</ Flex >
153
146
)
0 commit comments