-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added open in finder/explorer button in File Explorer
- Loading branch information
1 parent
eaab28b
commit 0578eb6
Showing
6 changed files
with
143 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import styled from 'styled-components'; | ||
|
||
import Colors from '@styles/Colors'; | ||
|
||
const DotsContainer = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
margin-right: 10px; | ||
`; | ||
|
||
const Dot = styled.div` | ||
width: 6px; | ||
height: 6px; | ||
border-radius: 50%; | ||
background-color: ${props => props.color}; | ||
&:not(:last-child) { | ||
margin-right: 2px; | ||
} | ||
`; | ||
|
||
interface DotsProps { | ||
dotNumber?: number; | ||
color?: Colors; | ||
} | ||
|
||
const Dots: React.FC<DotsProps> = props => { | ||
const {dotNumber = 3, color = Colors.blue6} = props; | ||
|
||
const dots = Array.from({length: dotNumber}).map(() => { | ||
return <Dot color={color} />; | ||
}); | ||
|
||
return <DotsContainer>{dots}</DotsContainer>; | ||
}; | ||
|
||
export default Dots; |
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 @@ | ||
export {default} from './Dots'; |
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,17 @@ | ||
import {Dropdown} from 'antd'; | ||
|
||
interface ContextMenuProps { | ||
overlay: React.ReactElement; | ||
} | ||
|
||
const ContextMenu: React.FC<ContextMenuProps> = props => { | ||
const {overlay, children} = props; | ||
|
||
return ( | ||
<Dropdown overlay={overlay} trigger={['click', 'hover']} placement="bottomCenter"> | ||
{children} | ||
</Dropdown> | ||
); | ||
}; | ||
|
||
export default ContextMenu; |
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 @@ | ||
export {default} from './ContextMenu'; |
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