@@ -136,11 +136,36 @@ class UpdatePeripheralStep extends React.Component {
136136 renderResults ( ) {
137137 let resultsContent ;
138138 if ( this . state . err === null ) {
139- resultsContent = ( < FormattedMessage
140- defaultMessage = "Update successful!"
141- description = "Message to indicate that the peripheral update was successful"
142- id = "gui.connection.updatePeripheral.updateSuccessful"
143- /> ) ;
139+ if ( this . props . extensionId === 'microbitMore' ) {
140+ resultsContent = (
141+ < Box className = { styles . scratchLinkError } >
142+ < Box className = { styles . centeredRow } >
143+ < FormattedMessage
144+ defaultMessage = "MicrobitMore update successful!"
145+ description = "Message to indicate that the MicrobitMore update was successful"
146+ id = "gui.connection.updatePeripheral.microbitMoreUpdateSuccessful"
147+ />
148+ </ Box >
149+ < Box className = { classNames ( styles . centeredRow , styles . importantInstruction ) } >
150+ < FormattedMessage
151+ defaultMessage = "Tilt your micro:bit to light up all 25 LEDs to complete."
152+ description = "Instructions to tilt the micro:bit to complete the update process"
153+ id = "gui.connection.updatePeripheral.microbitMoreTiltToLightUp"
154+ />
155+ </ Box >
156+ </ Box >
157+ ) ;
158+ } else {
159+ resultsContent = (
160+ < Box className = { styles . centeredRow } >
161+ < FormattedMessage
162+ defaultMessage = "Update successful!"
163+ description = "Message to indicate that the peripheral update was successful"
164+ id = "gui.connection.updatePeripheral.updateSuccessful"
165+ />
166+ </ Box >
167+ ) ;
168+ }
144169 } else if ( this . state . err . message === 'No valid interfaces found.' ) {
145170 // this is a special case where the micro:bit's communication firmware is too old to support WebUSB
146171 resultsContent = ( < BalancedFormattedMessage
@@ -160,12 +185,13 @@ class UpdatePeripheralStep extends React.Component {
160185 } else {
161186 resultsContent = (
162187 < Box className = { styles . scratchLinkError } >
163- < FormattedMessage
164- className = { styles . centeredRow }
165- defaultMessage = "Update failed."
166- description = "Message to indicate that the peripheral update failed"
167- id = "gui.connection.updatePeripheral.updateFailed"
168- />
188+ < Box className = { styles . centeredRow } >
189+ < FormattedMessage
190+ defaultMessage = "Update failed."
191+ description = "Message to indicate that the peripheral update failed"
192+ id = "gui.connection.updatePeripheral.updateFailed"
193+ />
194+ </ Box >
169195 < textarea
170196 className = { styles . scratchLinkErrorDetails }
171197 readOnly
@@ -254,6 +280,7 @@ class UpdatePeripheralStep extends React.Component {
254280
255281UpdatePeripheralStep . propTypes = {
256282 connectionSmallIconURL : PropTypes . string ,
283+ extensionId : PropTypes . string ,
257284 name : PropTypes . string . isRequired ,
258285 onScanning : PropTypes . func . isRequired ,
259286 onSendPeripheralUpdate : PropTypes . func . isRequired
0 commit comments