de daisy sell button

This commit is contained in:
ingawei 2022-10-11 23:26:29 -07:00
parent b4e7d88ed8
commit 7deadaf08b
2 changed files with 7 additions and 8 deletions

View File

@ -5,6 +5,7 @@ import { useState } from 'react'
import { Col } from './layout/col'
import clsx from 'clsx'
import { SellSharesModal } from './sell-modal'
import { Button } from './button'
export function SellButton(props: {
contract: BinaryContract | PseudoNumericContract

View File

@ -8,6 +8,7 @@ import { OutcomeLabel } from './outcome-label'
import { useUserContractBets } from 'web/hooks/use-user-bets'
import { useSaveBinaryShares } from './use-save-binary-shares'
import { SellSharesModal } from './sell-modal'
import { Button } from './button'
export function SellRow(props: {
contract: BinaryContract | PseudoNumericContract
@ -37,17 +38,14 @@ export function SellRow(props: {
shares
</div>
<button
className="btn btn-sm"
style={{
backgroundColor: 'white',
border: '2px solid',
color: '#3D4451',
}}
<Button
className="my-auto"
size="xs"
color="gray-outline"
onClick={() => setShowSellModal(true)}
>
Sell
</button>
</Button>
</Row>
</Col>
{showSellModal && (