generated from JohnBra/vite-web-extension
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(emails): add ability to select an email
This commit adds the ability to select an email in the list by clicking on it. The selected email is highlighted with a french-blue background color. The first email in the list is automatically selected by default. The `EmailItem` component now accepts an `onClick` prop and an `isSelected` prop, which are used to handle click events and apply styles respectively. The `EmailList` component now uses state to keep track of the currently selected email ID, and passes this information down to each `EmailItem`.
- Loading branch information
Showing
2 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters