@@ -8,19 +8,19 @@ import moveToIcon from '@iconify/icons-ri/anticlockwise-2-fill'
8
8
import useBlockStore from '../../Stores/useBlockStore'
9
9
import { Button , MexIcon } from '@mexit/shared'
10
10
import { ButtonWrapper } from '../../Style/Settings'
11
- import { ContextMenuActionType } from " @mexit/core"
11
+ import { ContextMenuActionType } from ' @mexit/core'
12
12
13
13
export const PrimaryText = styled . span `
14
14
color: ${ ( { theme } ) => theme . colors . primary } ;
15
15
`
16
16
17
-
18
17
const BlockMenu = styled . div `
19
18
display: flex;
20
19
align-items: center;
21
20
justify-content: space-between;
22
21
23
22
margin: 2px 0;
23
+ z-index: 999999;
24
24
25
25
p {
26
26
margin: 0;
@@ -29,39 +29,39 @@ const BlockMenu = styled.div`
29
29
`
30
30
31
31
const BlockInfoBar = ( ) => {
32
- const setIsModalOpen = useBlockStore ( ( store ) => store . setIsModalOpen )
33
- const isBlockMode = useBlockStore ( ( store ) => store . isBlockMode )
34
- const blocks = useBlockStore ( ( store ) => store . blocks )
35
- const setIsBlockMode = useBlockStore ( ( store ) => store . setIsBlockMode )
32
+ const setIsModalOpen = useBlockStore ( ( store ) => store . setIsModalOpen )
33
+ const isBlockMode = useBlockStore ( ( store ) => store . isBlockMode )
34
+ const blocks = useBlockStore ( ( store ) => store . blocks )
35
+ const setIsBlockMode = useBlockStore ( ( store ) => store . setIsBlockMode )
36
36
37
- const theme = useTheme ( )
38
- const length = Object . values ( blocks ) . length
39
- const blockHeading = length === 0 ? 'Select Blocks' : `Block${ length > 1 ? 's' : '' } selected:`
37
+ const theme = useTheme ( )
38
+ const length = Object . values ( blocks ) . length
39
+ const blockHeading = length === 0 ? 'Select Blocks' : `Block${ length > 1 ? 's' : '' } selected:`
40
40
41
- return (
42
- < BlockMenu >
43
- < Button onClick = { ( ) => setIsBlockMode ( ! isBlockMode ) } >
44
- < MexIcon fontSize = { 20 } noHover color = { theme . colors . primary } icon = { xBold } /> Cancel
45
- </ Button >
46
- < p >
47
- { blockHeading }
48
- { length > 0 && < PrimaryText >  { length } </ PrimaryText > }
49
- </ p >
50
- < ButtonWrapper >
51
- < Button onClick = { ( ) => setIsModalOpen ( ContextMenuActionType . move ) } >
52
- < MexIcon fontSize = { 20 } noHover color = { theme . colors . primary } icon = { moveToIcon } />
53
- Move
54
- </ Button >
55
- < Button onClick = { ( ) => setIsModalOpen ( ContextMenuActionType . send ) } >
56
- < MexIcon fontSize = { 20 } noHover color = { theme . colors . primary } icon = { sendToIcon } /> Send
57
- </ Button >
58
- < Button onClick = { ( ) => setIsModalOpen ( ContextMenuActionType . del ) } >
59
- < MexIcon fontSize = { 20 } noHover color = { theme . colors . primary } icon = { deleteBin6Line } />
60
- Delete
61
- </ Button >
62
- </ ButtonWrapper >
63
- </ BlockMenu >
64
- )
41
+ return (
42
+ < BlockMenu >
43
+ < Button onClick = { ( ) => setIsBlockMode ( ! isBlockMode ) } >
44
+ < MexIcon fontSize = { 20 } noHover color = { theme . colors . primary } icon = { xBold } /> Cancel
45
+ </ Button >
46
+ < p >
47
+ { blockHeading }
48
+ { length > 0 && < PrimaryText >  { length } </ PrimaryText > }
49
+ </ p >
50
+ < ButtonWrapper >
51
+ < Button onClick = { ( ) => setIsModalOpen ( ContextMenuActionType . move ) } >
52
+ < MexIcon fontSize = { 20 } noHover color = { theme . colors . primary } icon = { moveToIcon } />
53
+ Move
54
+ </ Button >
55
+ < Button onClick = { ( ) => setIsModalOpen ( ContextMenuActionType . send ) } >
56
+ < MexIcon fontSize = { 20 } noHover color = { theme . colors . primary } icon = { sendToIcon } /> Send
57
+ </ Button >
58
+ < Button onClick = { ( ) => setIsModalOpen ( ContextMenuActionType . del ) } >
59
+ < MexIcon fontSize = { 20 } noHover color = { theme . colors . primary } icon = { deleteBin6Line } />
60
+ Delete
61
+ </ Button >
62
+ </ ButtonWrapper >
63
+ </ BlockMenu >
64
+ )
65
65
}
66
66
67
67
export default BlockInfoBar
0 commit comments