Skip to content

Commit

Permalink
fix: remove icons from site menu
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber committed Jun 18, 2024
1 parent 84811fb commit 4346a76
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions dev-client/src/screens/ProjectSitesScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import {
} from 'terraso-client-shared/site/siteSlice';
import {normalizeText} from 'terraso-client-shared/utils';

import {Icon, IconName} from 'terraso-mobile-client/components/icons/Icon';
import {IconButton} from 'terraso-mobile-client/components/icons/IconButton';
import {
ListFilterModal,
Expand Down Expand Up @@ -65,17 +64,15 @@ import {theme} from 'terraso-mobile-client/theme';
import {searchText} from 'terraso-mobile-client/util';

type SiteMenuProps = {
iconName: IconName;
text: string;
onPress?: () => void;
};

const SiteMenuItem = ({iconName, text, onPress}: SiteMenuProps) => {
const SiteMenuItem = ({text, onPress}: SiteMenuProps) => {
return (
<Menu.Item>
<Pressable onPress={onPress}>
<Row flexDirection="row" space={2} alignItems="center">
<Icon name={iconName} size="xs" />
<Text>{text}</Text>
</Row>
</Pressable>
Expand Down Expand Up @@ -110,7 +107,6 @@ const SiteMenu = ({site}: SiteProps) => {
<ConfirmModal
trigger={onOpen => (
<SiteMenuItem
iconName="remove"
text={t('projects.sites.remove_site')}
onPress={onOpen}
/>
Expand All @@ -124,7 +120,6 @@ const SiteMenu = ({site}: SiteProps) => {
<ConfirmModal
trigger={onOpen => (
<SiteMenuItem
iconName="delete"
onPress={onOpen}
text={t('projects.sites.delete_site')}
/>
Expand Down

0 comments on commit 4346a76

Please sign in to comment.