Skip to content
Merged
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
9 changes: 6 additions & 3 deletions packages/ui/src/components/SplitButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { Box, Button, ButtonGroup, ClickAwayListener, Grow, MenuList, Paper, Pop
import ArrowDownIcon from './Icons/ArrowDownIcon';
import { useTheme } from '@emotion/react';
import { StyledMenuItem, StyledMenuItemIcon } from './SingleSelect';
// import CheckedIcon from "@/components/Icons/CheckedIcon.jsx";
import CheckedIcon from '@/assets/checked-icon.svg?react'
import { styled } from '@mui/material/styles';
import SvgIcon from "@mui/material/SvgIcon";

const StyledButtonGroup = styled(ButtonGroup)(() => (`
border-radius: 14px;
Expand Down Expand Up @@ -118,7 +117,11 @@ export default function SplitButton({ defaultValue = '', options = [], onClick }
</Typography>
{selectedOption.value === value && (
<StyledMenuItemIcon>
<CheckedIcon />
<SvgIcon>
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 16 16" fill="none">
<path d="M13.8359 0.948849L4.87629 9.83708C4.82429 9.88873 4.76253 9.9297 4.69455 9.95766C4.62657 9.98561 4.5537 10 4.48011 10C4.40652 10 4.33365 9.98561 4.26567 9.95766C4.19769 9.9297 4.13594 9.88873 4.08393 9.83708L0.164104 5.94848C0.05903 5.84424 0 5.70286 0 5.55545C0 5.40804 0.05903 5.26666 0.164104 5.16242C0.269178 5.05819 0.411689 4.99963 0.560286 4.99963C0.708884 4.99963 0.851395 5.05819 0.956469 5.16242L4.48011 8.65869L13.0435 0.162796C13.1486 0.0585594 13.2911 -1.09831e-09 13.4397 0C13.5883 1.09832e-09 13.7308 0.0585594 13.8359 0.162796C13.941 0.267034 14 0.40841 14 0.555823C14 0.703236 13.941 0.844612 13.8359 0.948849Z"/>
</svg>
</SvgIcon>
</StyledMenuItemIcon>
)}
</StyledMenuItem>)
Expand Down