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: add a no email selected component that shows in the detail pane
This commit adds a new component called NoEmailSelected that is displayed when no email is selected. The component is added to EmailDetailPane.tsx and displayed when there is no emails to show from the filtered list.
- Loading branch information
Showing
2 changed files
with
80 additions
and
52 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
11 changes: 11 additions & 0 deletions
11
src/pages/popup/components/home/detail/NoEmailSelected.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* This component is displayed when no email is selected. (For example when there are no emails to display in the filtered email list) | ||
*/ | ||
const NoEmailSelected: React.FC = () => { | ||
return ( | ||
<div className="text-xl text-gray-500 h-full flex items-center justify-center"> | ||
Nothing to see here.. | ||
</div> | ||
); | ||
}; | ||
export default NoEmailSelected; |