feat: add disable cursor in edgeless toolbar

This commit is contained in:
QiShaoXuan
2022-10-27 15:18:07 +08:00
parent 659e83befd
commit e729effcd8

View File

@@ -27,7 +27,7 @@ export const StyledToolbarItem = styled.div<{
height: '36px',
...displayFlex('center', 'center'),
color: disable ? theme.colors.disableColor : theme.colors.iconColor,
cursor: 'pointer',
cursor: disable ? 'not-allowed' : 'pointer',
svg: {
width: '36px',
height: '36px',