-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: workflow ui * fix * change icon color config * change popover to mymenu
- Loading branch information
1 parent
c8f2689
commit d3402f2
Showing
41 changed files
with
712 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion
7
packages/web/components/common/Icon/icons/common/file/move.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
packages/web/components/common/Icon/icons/core/workflow/edgeArrowBold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react'; | ||
import { Flex, FlexProps } from '@chakra-ui/react'; | ||
import MyIcon from '../Icon'; | ||
|
||
type Props = FlexProps & { | ||
icon: string; | ||
onClick?: () => void; | ||
hoverColor?: string; | ||
}; | ||
|
||
const IconButton = ({ icon, onClick, hoverColor = 'primary.600', ...props }: Props) => { | ||
return ( | ||
<Flex | ||
mr={1} | ||
p={1} | ||
color={'myGray.500'} | ||
rounded={'sm'} | ||
alignItems={'center'} | ||
bg={'transparent'} | ||
transition={'background 0.1s'} | ||
cursor={'pointer'} | ||
_hover={{ | ||
bg: 'myGray.05', | ||
color: hoverColor | ||
}} | ||
onClick={onClick} | ||
{...props} | ||
> | ||
<MyIcon name={icon as any} w={'16px'} /> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default IconButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.