Skip to content

Commit

Permalink
use existing Save24Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jun 1, 2024
1 parent 69b403d commit b307903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
5 changes: 2 additions & 3 deletions src/editor/components/modals/GeoModal/GeoModal.component.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { useState, useCallback, useEffect } from 'react';

import styles from './GeoModal.module.scss';
import { Mangnifier20Icon } from '../../../icons';
import { Mangnifier20Icon, Save24Icon } from '../../../icons';

import { firebaseConfig } from '../../../services/firebase.js';
import Modal from '../Modal.jsx';
import { Button, Input } from '../../components/index.js';
import { GoogleMap, useJsApiLoader, Marker } from '@react-google-maps/api';
import { DownloadIcon } from '../../../icons/icons.jsx';
import GeoImg from '../../../../../ui_assets/geo.png';

const GeoModal = ({ isOpen, onClose }) => {
Expand Down Expand Up @@ -137,7 +136,7 @@ const GeoModal = ({ isOpen, onClose }) => {
Cancel
</Button>
<Button
leadingicon={<DownloadIcon />}
leadingicon={<Save24Icon />}
variant="filled"
onClick={onSaveHandler}
>
Expand Down
18 changes: 0 additions & 18 deletions src/editor/icons/icons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -471,23 +471,6 @@ const Circle20Icon = ({ className }) => (
</svg>
);

const DownloadIcon = () => (
<svg
width="24"
height="25"
viewBox="0 0 24 25"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M12 3.5C12.4142 3.5 12.75 3.83579 12.75 4.25V13.6893L16.1572 10.2822C16.4501 9.98928 16.9249 9.98928 17.2178 10.2822C17.5107 10.5751 17.5107 11.0499 17.2178 11.3428L12.5303 16.0303C12.2374 16.3232 11.7626 16.3232 11.4697 16.0303L6.78217 11.3428C6.48928 11.0499 6.48928 10.5751 6.78217 10.2822C7.07506 9.98928 7.54994 9.98928 7.84283 10.2822L11.25 13.6893V4.25C11.25 3.83579 11.5858 3.5 12 3.5ZM4.5 15.6875C4.91421 15.6875 5.25 16.0233 5.25 16.4375V18.3125C5.25 18.6109 5.36853 18.897 5.5795 19.108C5.79048 19.319 6.07663 19.4375 6.375 19.4375H17.625C17.9234 19.4375 18.2095 19.319 18.4205 19.108C18.6315 18.897 18.75 18.6109 18.75 18.3125V16.4375C18.75 16.0233 19.0858 15.6875 19.5 15.6875C19.9142 15.6875 20.25 16.0233 20.25 16.4375V18.3125C20.25 19.0087 19.9734 19.6764 19.4812 20.1687C18.9889 20.6609 18.3212 20.9375 17.625 20.9375H6.375C5.67881 20.9375 5.01113 20.6609 4.51884 20.1687C4.02656 19.6764 3.75 19.0087 3.75 18.3125V16.4375C3.75 16.0233 4.08579 15.6875 4.5 15.6875Z"
fill="white"
/>
</svg>
);

const Chevron24Down = ({ className }) => (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down Expand Up @@ -553,7 +536,6 @@ export {
LayersIcon,
GoogleSignInButtonSVG,
Circle20Icon,
DownloadIcon,
Chevron24Down,
Plus20Circle
};

0 comments on commit b307903

Please sign in to comment.