Skip to content

Commit

Permalink
Merge pull request #270 from steff456/remove-square-icon
Browse files Browse the repository at this point in the history
Remove square icon in dependencies and channel widgets
  • Loading branch information
trallard authored Aug 11, 2023
2 parents 654b3a5 + d92fbda commit 01c4827
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
8 changes: 0 additions & 8 deletions src/features/channels/components/Channel.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import React from "react";
import { getIconForStyleType } from "../../../utils/helpers";
import { SquareIconAlt } from "../../../components";

interface IChannelProps {
/**
Expand All @@ -12,14 +10,8 @@ interface IChannelProps {
}

export const Channel = ({ channelName }: IChannelProps) => {
const icon = getIconForStyleType(
<></>,
<SquareIconAlt style={{ marginRight: "8px" }} />
);

return (
<Box className="box" sx={{ display: "flex", alignItems: "center" }}>
{icon}
<Typography
className="typography"
sx={{ color: "#333", fontSize: "13px" }}
Expand Down
9 changes: 1 addition & 8 deletions src/features/dependencies/components/DependenciesItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import Typography from "@mui/material/Typography";
import { Dependency } from "../../../common/models";
import Tooltip from "@mui/material/Tooltip";
import { StyledIconButton } from "../../../styles";
import { getIconForStyleType } from "../../../utils/helpers";
import { SquareIconAlt, UploadIcon } from "../../../components";
import { UploadIcon } from "../../../components";

interface IDependenciesItemProps {
/**
Expand All @@ -26,15 +25,9 @@ const BaseDependenciesItem = ({
const { name, version } = dependency;
const isEditMode = mode === "edit";

const icon = getIconForStyleType(
<></>,
<SquareIconAlt style={{ marginRight: "8px" }} />
);

return (
<Box sx={{ display: "flex", alignItems: "center" }}>
<Box sx={{ display: "flex", alignItems: "center", width: "300px" }}>
{icon}
<Typography sx={{ fontSize: "13px", color: "#333" }}>{name}</Typography>
</Box>
<Typography
Expand Down

0 comments on commit 01c4827

Please sign in to comment.