Skip to content

Commit

Permalink
Mobile: Fixes #10172: Fix trash folder sometimes has wrong icon (#10173)
Browse files Browse the repository at this point in the history
  • Loading branch information
personalizedrefrigerator authored Mar 21, 2024
1 parent 55d72a8 commit 382f0d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/app-mobile/components/side-menu-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ const SideMenuContentComponent = (props: Props) => {

const renderFolderIcon = (folderId: string, theme: any, folderIcon: FolderIcon) => {
if (!folderIcon) {
if (alwaysShowFolderIcons) {
return <Icon name="folder-outline" style={styles_.emptyFolderIcon} />;
} else if (folderId === getTrashFolderId()) {
if (folderId === getTrashFolderId()) {
folderIcon = getTrashFolderIcon(FolderIconType.Emoji);
} else if (alwaysShowFolderIcons) {
return <Icon name="folder-outline" style={styles_.emptyFolderIcon} />;
} else {
return null;
}
Expand Down

0 comments on commit 382f0d8

Please sign in to comment.