diff --git a/src/pages/popup/components/home/Home.tsx b/src/pages/popup/components/home/Home.tsx index 9864405..cabe638 100644 --- a/src/pages/popup/components/home/Home.tsx +++ b/src/pages/popup/components/home/Home.tsx @@ -11,7 +11,7 @@ import { FASTMAIL_SESSION_KEY } from '../../../../../utils/constants'; export default function HomeComponent() { const [maskedEmails, setMaskedEmails] = useState([]); const [isLoading, setIsLoading] = useState(true); - const [filterOption, setFilterOption] = useState('all'); + const [filterOption, setFilterOption] = useState('favorited'); const [searchQuery, setSearchQuery] = useState(''); // State for keeping track of the count of filtered emails const [filteredEmailsCount, setFilteredEmailsCount] = useState(0); diff --git a/src/pages/popup/components/home/filter/FilterEmailsDropdown.tsx b/src/pages/popup/components/home/filter/FilterEmailsDropdown.tsx index b494b7a..838b181 100644 --- a/src/pages/popup/components/home/filter/FilterEmailsDropdown.tsx +++ b/src/pages/popup/components/home/filter/FilterEmailsDropdown.tsx @@ -15,6 +15,13 @@ function FilterEmailsDropdown({ onFilterChange: (option: string) => void; }) { const dropdownItems = [ + { + label: 'Favorited', + value: 'Favorited', + icon: ( + + ) + }, { label: 'All', value: 'All', @@ -34,13 +41,6 @@ function FilterEmailsDropdown({ label: 'Deleted', value: 'Deleted', icon: - }, - { - label: 'Favorited', - value: 'Favorited', - icon: ( - - ) } ]; // State for the dropdown menu open/close status