Skip to content

Commit 099f068

Browse files
authored
Site migration: add View Site button to homepage banner (#39632)
* Added View Site button to migrated header on Customer Home. * Using the same layout as the Launched home.
1 parent d32909d commit 099f068

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

client/my-sites/customer-home/main.jsx

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -257,25 +257,6 @@ class Home extends Component {
257257
}
258258
}
259259

260-
if ( isRecentlyMigratedSite ) {
261-
return (
262-
<Card className="customer-home__migrate-card" highlight="info">
263-
<img
264-
src={ fireworksIllustration }
265-
aria-hidden="true"
266-
className="customer-home__migrate-fireworks"
267-
alt=""
268-
/>
269-
<div className="customer-home__migrate-card-text">
270-
<CardHeading>{ translate( 'Your site has been imported!' ) }</CardHeading>
271-
<p className="customer-home__migrate-card-subtext">
272-
{ this.getChecklistSubHeaderText() }
273-
</p>
274-
</div>
275-
</Card>
276-
);
277-
}
278-
279260
// If launched, show a congratulatory message, else show the standard heading
280261
return (
281262
<>
@@ -295,6 +276,22 @@ class Home extends Component {
295276
</div>
296277
) }
297278
</div>
279+
{ isRecentlyMigratedSite && (
280+
<Card className="customer-home__migrate-card" highlight="info">
281+
<img
282+
src="/calypso/images/illustrations/fireworks.svg"
283+
aria-hidden="true"
284+
className="customer-home__migrate-fireworks"
285+
alt=""
286+
/>
287+
<div className="customer-home__migrate-card-text">
288+
<CardHeading>{ translate( 'Your site has been imported!' ) }</CardHeading>
289+
<p className="customer-home__migrate-card-subtext">
290+
{ this.getChecklistSubHeaderText() }
291+
</p>
292+
</div>
293+
</Card>
294+
) }
298295
{ ! siteIsUnlaunched && 'launched' === checklistMode ? (
299296
<Card className="customer-home__launch-card" highlight="info">
300297
<img

0 commit comments

Comments
 (0)