Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Removing unused styles, extra space in entity item and passing button condition prop #37674

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
removing unused styles and passing button condition prop
  • Loading branch information
ankitakinger committed Nov 25, 2024
commit f4bc4ab419a0b06a6910c0460bd0757db917fe72
2 changes: 2 additions & 0 deletions app/client/src/IDE/Components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function IDESidebar(props: IDESidebarProps) {
<div>
{topButtons.map((button) => (
<SidebarButton
condition={button.condition}
icon={button.icon}
key={button.state}
onClick={onClick}
Expand All @@ -52,6 +53,7 @@ function IDESidebar(props: IDESidebarProps) {
<div>
{bottomButtons.map((button) => (
<SidebarButton
condition={button.condition}
icon={button.icon}
key={button.state}
onClick={onClick}
Expand Down
10 changes: 0 additions & 10 deletions app/client/src/pages/Editor/Explorer/Entity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,20 +203,10 @@ export const EntityItem = styled.div<{
`;

const IconWrapper = styled.span`
line-height: ${(props) => props.theme.lineHeights[0]}px;
color: var(--ads-v2-color-fg);
display: flex;
align-items: center;
div {
cursor: pointer;
}
svg {
width: 16px;
height: 16px;
}
margin-right: 4px;
`;

export const AddButtonWrapper = styled.div`
Expand Down
Loading