Skip to content

Commit

Permalink
swap export imageWrapper to bespoke within component
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Aug 5, 2024
1 parent bc85387 commit b65a27b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions editor.planx.uk/src/pages/FlowEditor/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { hasFeatureFlag } from "lib/featureFlags";
import { formatLastPublishMessage } from "pages/FlowEditor/utils";
import React, { useEffect, useState } from "react";
import { useAsync } from "react-use";
import { ImageWrapper } from "ui/editor/ImgInput";
import Permission from "ui/editor/Permission";
import Input from "ui/shared/Input";

Expand Down Expand Up @@ -101,6 +100,15 @@ const TabList = styled(Box)(({ theme }) => ({
},
}));

const ImageWrapper = styled(Box)(() => ({
width: "auto",
height: 24,
display: "flex",
justifyContent: "center",
alignItems: "center",
padding: "4px",
}));

const StyledTab = styled(Tab)(({ theme }) => ({
position: "relative",
zIndex: 1,
Expand Down Expand Up @@ -317,7 +325,7 @@ const Sidebar: React.FC<{
{`Links to Copy`}
</DialogTitle>
<DialogContent>
<Stack spacing={2} mb={"30px"}>
<Stack spacing={"25px"} mb={"30px"}>
<Box
display={"flex"}
flexDirection={"column"}
Expand Down

0 comments on commit b65a27b

Please sign in to comment.