Skip to content

Commit

Permalink
added preview view (manifoldmarkets#2030)
Browse files Browse the repository at this point in the history
* added preview view
  • Loading branch information
ingawei authored Sep 8, 2023
1 parent f32d37b commit bc04244
Show file tree
Hide file tree
Showing 6 changed files with 1,725 additions and 0 deletions.
27 changes: 27 additions & 0 deletions web/components/preview/preview-bet-button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import {
BinaryContract,
CPMMBinaryContract,
PseudoNumericContract,
StonkContract,
} from 'common/contract'
import { UserBetsSummary } from 'web/components/bet/bet-summary'
import { User } from 'web/lib/firebase/users'
import { Col } from '../layout/col'
import { PreviewBuyPanel } from './preview-bet-panel'

export function PreviewSignedInBinaryMobileBetting(props: {
contract: BinaryContract | PseudoNumericContract | StonkContract
user: User | null | undefined
}) {
const { contract, user } = props

return (
<Col className="my-3 w-full px-1">
<PreviewBuyPanel
inModal={false}
contract={contract as CPMMBinaryContract}
user={user}
/>
</Col>
)
}
Loading

0 comments on commit bc04244

Please sign in to comment.