Skip to content

Commit

Permalink
Fix disappearing tabs bug
Browse files Browse the repository at this point in the history
  • Loading branch information
avclarke committed Jul 11, 2023
1 parent 3a7c377 commit a68823b
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions packages/app/src/sections/futures/UserInfo/EditPositionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { FuturesMarketKey } from '@kwenta/sdk/types'
import styled from 'styled-components'

import PencilButton from 'components/Button/PencilButton'
import { setShowPositionModal } from 'state/app/reducer'
Expand All @@ -14,16 +15,24 @@ export default function EditPositionButton({
}) {
const dispatch = useAppDispatch()
return (
<PencilButton
width={9}
onClick={() =>
dispatch(
setShowPositionModal({
type: modalType,
marketKey: marketKey,
})
)
}
/>
<Container>
<PencilButton
width={9}
onClick={() =>
dispatch(
setShowPositionModal({
type: modalType,
marketKey: marketKey,
})
)
}
/>
</Container>
)
}

const Container = styled.button`
border: 0;
background: none;
padding: 0;
`

0 comments on commit a68823b

Please sign in to comment.