Skip to content

Commit

Permalink
Reorder add device warning (#1188)
Browse files Browse the repository at this point in the history
* Reorder add device warning

This makes the "add device" warning more consistent with the "add
recovery" warning.

* 🤖 Selenium screenshots auto-update

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
nmattia and github-actions[bot] authored Jan 31, 2023
1 parent 26da2ce commit 7a9181a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
Binary file modified screenshots/desktop/displayManageSingle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/displayManageSingle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 8 additions & 9 deletions src/frontend/src/flows/manage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,14 @@ const devicesSection = (
</span>
</span>
</div>
${
isWarning === true
? html`<p class="warning-message t-paragraph t-lead">
We recommend that you have at least two devices (for example,
your computer and your phone).
</p>`
: undefined
}
<div class="c-action-list">
<div id="deviceList"></div>
Expand All @@ -182,15 +190,6 @@ const devicesSection = (
</div>
</div>
${
isWarning === true
? html`<p class="warning-message t-paragraph t-lead">
<strong class="t-strong">Warning!</strong> We recommend that you
have at least two devices (for example, your computer and your
phone).
</p>`
: undefined
}
</div>
</aside>`;
};
Expand Down

0 comments on commit 7a9181a

Please sign in to comment.