Skip to content

Commit

Permalink
feat: introduce new icons for import/export (#7970)
Browse files Browse the repository at this point in the history
We found good one for export from MUI, but needed to created similar one
for import.


![image](https://github.com/user-attachments/assets/f8ed2f07-5c8b-4829-a298-4b5e7311b059)
  • Loading branch information
sjaanus authored Aug 22, 2024
1 parent 4615ff4 commit f7d5c8e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions frontend/src/assets/icons/import.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
Typography,
} from '@mui/material';
import Add from '@mui/icons-material/Add';
import FileDownload from '@mui/icons-material/FileDownload';
import MoreVert from '@mui/icons-material/MoreVert';
import { Link } from 'react-router-dom';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
Expand All @@ -20,6 +19,7 @@ import { CREATE_FEATURE } from 'component/providers/AccessProvider/permissions';
import { PermissionHOC } from 'component/common/PermissionHOC/PermissionHOC';
import { useCreateFeaturePath } from 'component/feature/CreateFeatureButton/useCreateFeaturePath';
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
import IosShare from '@mui/icons-material/IosShare';

const StyledActions = styled('div')(({ theme }) => ({
display: 'flex',
Expand Down Expand Up @@ -138,7 +138,7 @@ export const FeatureToggleListActions: FC<IFeatureFlagListActions> = ({
}}
>
<ListItemIcon>
<FileDownload />
<IosShare />
</ListItemIcon>
<ListItemText>
<Typography variant='body2'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
import { Search } from 'component/common/Search/Search';
import { useUiFlag } from 'hooks/useUiFlag';
import Add from '@mui/icons-material/Add';
import FileDownload from '@mui/icons-material/FileDownload';
import { styled } from '@mui/material';
import ResponsiveButton from 'component/common/ResponsiveButton/ResponsiveButton';
import { useSearchParams } from 'react-router-dom';
Expand All @@ -26,6 +25,7 @@ import ReviewsOutlined from '@mui/icons-material/ReviewsOutlined';
import { useFeedback } from 'component/feedbackNew/useFeedback';
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
import { CreateFeatureDialog } from './CreateFeatureDialog';
import IosShare from '@mui/icons-material/IosShare';

interface IProjectFeatureTogglesHeaderProps {
isLoading?: boolean;
Expand Down Expand Up @@ -165,7 +165,7 @@ export const ProjectFeatureTogglesHeader: FC<
marginRight: theme.spacing(2),
})}
>
<FileDownload />
<IosShare />
</IconButton>
</Tooltip>

Expand Down
4 changes: 2 additions & 2 deletions frontend/src/component/project/Project/Project.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useNavigate } from 'react-router';
import useLoading from 'hooks/useLoading';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { ReactComponent as ImportSvg } from 'assets/icons/import.svg';
import {
StyledDiv,
StyledFavoriteIconButton,
Expand All @@ -14,7 +15,6 @@ import {
StyledTopRow,
} from './Project.styles';
import { Box, Paper, Tabs, Typography, styled } from '@mui/material';
import FileUpload from '@mui/icons-material/FileUpload';
import useToast from 'hooks/useToast';
import useQueryParams from 'hooks/useQueryParams';
import { useEffect, useState } from 'react';
Expand Down Expand Up @@ -230,7 +230,7 @@ export const Project = () => {
data-testid={IMPORT_BUTTON}
data-loading-project
>
<FileUpload />
<ImportSvg />
</PermissionIconButton>
}
/>
Expand Down

0 comments on commit f7d5c8e

Please sign in to comment.