Skip to content

Commit

Permalink
chore: remove react-feather icon library (#2471)
Browse files Browse the repository at this point in the history
* chore: remove react-feather icon library

* chore: remove react-feather icon library
  • Loading branch information
ianjon3s authored Nov 22, 2023
1 parent 9bbb4d8 commit f22eaf2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 28 deletions.
1 change: 0 additions & 1 deletion editor.planx.uk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"react-dom": "^18.2.0",
"react-dropzone": "^14.2.3",
"react-error-boundary": "^3.1.4",
"react-feather": "^2.0.10",
"react-html-parser": "^2.0.2",
"react-markdown": "^8.0.7",
"react-navi": "^0.15.0",
Expand Down
12 changes: 0 additions & 12 deletions editor.planx.uk/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 11 additions & 13 deletions editor.planx.uk/src/pages/FlowEditor/components/PreviewBrowser.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import LanguageIcon from "@mui/icons-material/Language";
import MenuOpenIcon from "@mui/icons-material/MenuOpen";
import OpenInNewIcon from "@mui/icons-material/OpenInNew";
import RefreshIcon from "@mui/icons-material/Refresh";
import SignalCellularAltIcon from "@mui/icons-material/SignalCellularAlt";
import Box from "@mui/material/Box";
import Button from "@mui/material/Button";
import Dialog from "@mui/material/Dialog";
Expand All @@ -10,13 +15,6 @@ import Tooltip from "@mui/material/Tooltip";
import Typography from "@mui/material/Typography";
import formatDistanceToNow from "date-fns/formatDistanceToNow";
import React, { useState } from "react";
import {
BarChart,
ExternalLink,
Globe,
RefreshCw,
Terminal,
} from "react-feather";
import { useAsync } from "react-use";
import Input from "ui/Input";

Expand Down Expand Up @@ -146,7 +144,7 @@ const PreviewBrowser: React.FC<{
value={props.url.replace("/preview", "/unpublished")}
/>
<Tooltip arrow title="Refresh preview">
<RefreshCw
<RefreshIcon
onClick={() => {
resetPreview();
setKey((a) => !a);
Expand All @@ -155,7 +153,7 @@ const PreviewBrowser: React.FC<{
</Tooltip>

<Tooltip arrow title="Toggle debug console">
<Terminal
<MenuOpenIcon
onClick={() => setDebugConsoleVisibility(!showDebugConsole)}
/>
</Tooltip>
Expand All @@ -168,14 +166,14 @@ const PreviewBrowser: React.FC<{
rel="noopener noreferrer"
color="inherit"
>
<BarChart />
<SignalCellularAltIcon />
</Link>
</Tooltip>
) : (
<Tooltip arrow title="Analytics page unavailable">
<Box>
<Link component={"button"} disabled aria-disabled={true}>
<BarChart />
<SignalCellularAltIcon />
</Link>
</Box>
</Tooltip>
Expand All @@ -188,7 +186,7 @@ const PreviewBrowser: React.FC<{
rel="noopener noreferrer"
color="inherit"
>
<ExternalLink />
<OpenInNewIcon />
</Link>
</Tooltip>

Expand All @@ -199,7 +197,7 @@ const PreviewBrowser: React.FC<{
rel="noopener noreferrer"
color="inherit"
>
<Globe />
<LanguageIcon />
</Link>
</Tooltip>
</Box>
Expand Down
5 changes: 3 additions & 2 deletions editor.planx.uk/src/pages/FlowEditor/floweditor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@ $pixel: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAA
input {
flex: 1;
padding: 5px;
margin-right: 5px;
background: white;
border: 1px solid rgba(0, 0, 0, 0.2);
}
svg {
cursor: pointer;
opacity: 0.7;
padding: 6px 0 3px 5px;
// height: 20px;
margin: 6px 4px 1px 4px;
font-size: 1.2rem;
}
display: flex;
background: #ddd;
Expand Down

0 comments on commit f22eaf2

Please sign in to comment.