be-components 7.4.8 → 7.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/ApiOverrides/index.js +4 -0
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/BetRouter/api/index.js +884 -0
- package/lib/commonjs/BetRouter/api/index.js.map +1 -0
- package/lib/commonjs/BetRouter/api/types.js +2 -0
- package/lib/commonjs/BetRouter/api/types.js.map +1 -0
- package/lib/commonjs/BetRouter/components/AccountManager.js +592 -0
- package/lib/commonjs/BetRouter/components/AccountManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/AdminPortal.js +51 -0
- package/lib/commonjs/BetRouter/components/AdminPortal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunities.js +550 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js +320 -0
- package/lib/commonjs/BetRouter/components/BuyOpportunityCard.js.map +1 -0
- package/lib/commonjs/BetRouter/components/ContestLiquidity.js +666 -0
- package/lib/commonjs/BetRouter/components/ContestLiquidity.js.map +1 -0
- package/lib/commonjs/BetRouter/components/ContestSelector.js +193 -0
- package/lib/commonjs/BetRouter/components/ContestSelector.js.map +1 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.js +332 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js +545 -0
- package/lib/commonjs/BetRouter/components/OpportunityDetailModal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/OpportunityHistory.js +489 -0
- package/lib/commonjs/BetRouter/components/OpportunityHistory.js.map +1 -0
- package/lib/commonjs/BetRouter/components/PartnerCredentials.js +229 -0
- package/lib/commonjs/BetRouter/components/PartnerCredentials.js.map +1 -0
- package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js +262 -0
- package/lib/commonjs/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/AutoFillView.js +380 -0
- package/lib/commonjs/BetRouter/components/admin/AutoFillView.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/ConfigManager.js +814 -0
- package/lib/commonjs/BetRouter/components/admin/ConfigManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/JobManager.js +895 -0
- package/lib/commonjs/BetRouter/components/admin/JobManager.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueContests.js +2844 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueContests.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js +378 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueInfo.js.map +1 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js +795 -0
- package/lib/commonjs/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
- package/lib/commonjs/BetRouter/index.js +411 -0
- package/lib/commonjs/BetRouter/index.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js +312 -0
- package/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/DesktopLayout.js +271 -0
- package/lib/commonjs/BetRouter/layouts/DesktopLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js +435 -0
- package/lib/commonjs/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/layouts/MobileLayout.js +293 -0
- package/lib/commonjs/BetRouter/layouts/MobileLayout.js.map +1 -0
- package/lib/commonjs/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/lib/commonjs/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/lib/commonjs/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/lib/commonjs/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/lib/commonjs/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/lib/commonjs/BetRouter/types/README.md +249 -0
- package/lib/commonjs/BetRouter/types/accounts.js +2 -0
- package/lib/commonjs/BetRouter/types/accounts.js.map +1 -0
- package/lib/commonjs/BetRouter/types/api-contracts.js +776 -0
- package/lib/commonjs/BetRouter/types/api-contracts.js.map +1 -0
- package/lib/commonjs/BetRouter/types/config.js +2 -0
- package/lib/commonjs/BetRouter/types/config.js.map +1 -0
- package/lib/commonjs/BetRouter/types/contests.js +2 -0
- package/lib/commonjs/BetRouter/types/contests.js.map +1 -0
- package/lib/commonjs/BetRouter/types/credentials.js +90 -0
- package/lib/commonjs/BetRouter/types/credentials.js.map +1 -0
- package/lib/commonjs/BetRouter/types/index.js +149 -0
- package/lib/commonjs/BetRouter/types/index.js.map +1 -0
- package/lib/commonjs/BetRouter/types/jobs.js +2 -0
- package/lib/commonjs/BetRouter/types/jobs.js.map +1 -0
- package/lib/commonjs/BetRouter/types/leagues.js +2 -0
- package/lib/commonjs/BetRouter/types/leagues.js.map +1 -0
- package/lib/commonjs/BetRouter/types/liquidity.js +2 -0
- package/lib/commonjs/BetRouter/types/liquidity.js.map +1 -0
- package/lib/commonjs/BetRouter/types/markets.js +2 -0
- package/lib/commonjs/BetRouter/types/markets.js.map +1 -0
- package/lib/commonjs/BetRouter/types/opportunities.js +6 -0
- package/lib/commonjs/BetRouter/types/opportunities.js.map +1 -0
- package/lib/commonjs/BetRouter/types/orders.js +2 -0
- package/lib/commonjs/BetRouter/types/orders.js.map +1 -0
- package/lib/commonjs/BetRouter/types/participants.js +2 -0
- package/lib/commonjs/BetRouter/types/participants.js.map +1 -0
- package/lib/commonjs/BetRouter/types/partners.js +2 -0
- package/lib/commonjs/BetRouter/types/partners.js.map +1 -0
- package/lib/commonjs/Charts/README.md +310 -0
- package/lib/commonjs/Charts/adapters/TradeChartAdapter.js +406 -0
- package/lib/commonjs/Charts/adapters/TradeChartAdapter.js.map +1 -0
- package/lib/commonjs/Charts/components/BaseLineChart.js +307 -0
- package/lib/commonjs/Charts/components/BaseLineChart.js.map +1 -0
- package/lib/commonjs/Charts/components/LivePriceChart.js +509 -0
- package/lib/commonjs/Charts/components/LivePriceChart.js.map +1 -0
- package/lib/commonjs/Charts/index.js +126 -0
- package/lib/commonjs/Charts/index.js.map +1 -0
- package/lib/commonjs/Charts/themes/chartTheme.js +141 -0
- package/lib/commonjs/Charts/themes/chartTheme.js.map +1 -0
- package/lib/commonjs/Charts/types.js +2 -0
- package/lib/commonjs/Charts/types.js.map +1 -0
- package/lib/commonjs/Charts/utils/formatters.js +194 -0
- package/lib/commonjs/Charts/utils/formatters.js.map +1 -0
- package/lib/commonjs/Components/Dropdown.js +5 -3
- package/lib/commonjs/Components/Dropdown.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +24 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/index.js +34 -0
- package/lib/commonjs/Components/index.js.map +1 -1
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.d.js +16 -0
- package/lib/commonjs/types.d.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +4 -0
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/BetRouter/api/index.js +873 -0
- package/lib/module/BetRouter/api/index.js.map +1 -0
- package/lib/module/BetRouter/api/types.js +2 -0
- package/lib/module/BetRouter/api/types.js.map +1 -0
- package/lib/module/BetRouter/components/AccountManager.js +584 -0
- package/lib/module/BetRouter/components/AccountManager.js.map +1 -0
- package/lib/module/BetRouter/components/AdminPortal.js +43 -0
- package/lib/module/BetRouter/components/AdminPortal.js.map +1 -0
- package/lib/module/BetRouter/components/BuyOpportunities.js +542 -0
- package/lib/module/BetRouter/components/BuyOpportunities.js.map +1 -0
- package/lib/module/BetRouter/components/BuyOpportunityCard.js +313 -0
- package/lib/module/BetRouter/components/BuyOpportunityCard.js.map +1 -0
- package/lib/module/BetRouter/components/ContestLiquidity.js +658 -0
- package/lib/module/BetRouter/components/ContestLiquidity.js.map +1 -0
- package/lib/module/BetRouter/components/ContestSelector.js +185 -0
- package/lib/module/BetRouter/components/ContestSelector.js.map +1 -0
- package/lib/module/BetRouter/components/MyOpportunities.js +324 -0
- package/lib/module/BetRouter/components/MyOpportunities.js.map +1 -0
- package/lib/module/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/lib/module/BetRouter/components/OpportunityDetailModal.js +538 -0
- package/lib/module/BetRouter/components/OpportunityDetailModal.js.map +1 -0
- package/lib/module/BetRouter/components/OpportunityHistory.js +481 -0
- package/lib/module/BetRouter/components/OpportunityHistory.js.map +1 -0
- package/lib/module/BetRouter/components/PartnerCredentials.js +222 -0
- package/lib/module/BetRouter/components/PartnerCredentials.js.map +1 -0
- package/lib/module/BetRouter/components/PlacedOpportunityModal.js +255 -0
- package/lib/module/BetRouter/components/PlacedOpportunityModal.js.map +1 -0
- package/lib/module/BetRouter/components/admin/AutoFillView.js +372 -0
- package/lib/module/BetRouter/components/admin/AutoFillView.js.map +1 -0
- package/lib/module/BetRouter/components/admin/ConfigManager.js +806 -0
- package/lib/module/BetRouter/components/admin/ConfigManager.js.map +1 -0
- package/lib/module/BetRouter/components/admin/JobManager.js +888 -0
- package/lib/module/BetRouter/components/admin/JobManager.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueContests.js +2836 -0
- package/lib/module/BetRouter/components/admin/LeagueContests.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueInfo.js +372 -0
- package/lib/module/BetRouter/components/admin/LeagueInfo.js.map +1 -0
- package/lib/module/BetRouter/components/admin/LeagueParticipants.js +787 -0
- package/lib/module/BetRouter/components/admin/LeagueParticipants.js.map +1 -0
- package/lib/module/BetRouter/index.js +399 -0
- package/lib/module/BetRouter/index.js.map +1 -0
- package/lib/module/BetRouter/layouts/DesktopAdminLayout.js +304 -0
- package/lib/module/BetRouter/layouts/DesktopAdminLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/DesktopLayout.js +263 -0
- package/lib/module/BetRouter/layouts/DesktopLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/MobileAdminLayout.js +427 -0
- package/lib/module/BetRouter/layouts/MobileAdminLayout.js.map +1 -0
- package/lib/module/BetRouter/layouts/MobileLayout.js +285 -0
- package/lib/module/BetRouter/layouts/MobileLayout.js.map +1 -0
- package/lib/module/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/lib/module/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/lib/module/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/lib/module/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/lib/module/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/lib/module/BetRouter/types/README.md +249 -0
- package/lib/module/BetRouter/types/accounts.js +2 -0
- package/lib/module/BetRouter/types/accounts.js.map +1 -0
- package/lib/module/BetRouter/types/api-contracts.js +770 -0
- package/lib/module/BetRouter/types/api-contracts.js.map +1 -0
- package/lib/module/BetRouter/types/config.js +2 -0
- package/lib/module/BetRouter/types/config.js.map +1 -0
- package/lib/module/BetRouter/types/contests.js +2 -0
- package/lib/module/BetRouter/types/contests.js.map +1 -0
- package/lib/module/BetRouter/types/credentials.js +78 -0
- package/lib/module/BetRouter/types/credentials.js.map +1 -0
- package/lib/module/BetRouter/types/index.js +17 -0
- package/lib/module/BetRouter/types/index.js.map +1 -0
- package/lib/module/BetRouter/types/jobs.js +2 -0
- package/lib/module/BetRouter/types/jobs.js.map +1 -0
- package/lib/module/BetRouter/types/leagues.js +2 -0
- package/lib/module/BetRouter/types/leagues.js.map +1 -0
- package/lib/module/BetRouter/types/liquidity.js +2 -0
- package/lib/module/BetRouter/types/liquidity.js.map +1 -0
- package/lib/module/BetRouter/types/markets.js +2 -0
- package/lib/module/BetRouter/types/markets.js.map +1 -0
- package/lib/module/BetRouter/types/opportunities.js +2 -0
- package/lib/module/BetRouter/types/opportunities.js.map +1 -0
- package/lib/module/BetRouter/types/orders.js +2 -0
- package/lib/module/BetRouter/types/orders.js.map +1 -0
- package/lib/module/BetRouter/types/participants.js +2 -0
- package/lib/module/BetRouter/types/participants.js.map +1 -0
- package/lib/module/BetRouter/types/partners.js +2 -0
- package/lib/module/BetRouter/types/partners.js.map +1 -0
- package/lib/module/Charts/README.md +310 -0
- package/lib/module/Charts/adapters/TradeChartAdapter.js +400 -0
- package/lib/module/Charts/adapters/TradeChartAdapter.js.map +1 -0
- package/lib/module/Charts/components/BaseLineChart.js +303 -0
- package/lib/module/Charts/components/BaseLineChart.js.map +1 -0
- package/lib/module/Charts/components/LivePriceChart.js +502 -0
- package/lib/module/Charts/components/LivePriceChart.js.map +1 -0
- package/lib/module/Charts/index.js +36 -0
- package/lib/module/Charts/index.js.map +1 -0
- package/lib/module/Charts/themes/chartTheme.js +134 -0
- package/lib/module/Charts/themes/chartTheme.js.map +1 -0
- package/lib/module/Charts/types.js +2 -0
- package/lib/module/Charts/types.js.map +1 -0
- package/lib/module/Charts/utils/formatters.js +178 -0
- package/lib/module/Charts/utils/formatters.js.map +1 -0
- package/lib/module/Components/Dropdown.js +5 -3
- package/lib/module/Components/Dropdown.js.map +1 -1
- package/lib/module/Components/Icons.js +24 -1
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/index.js +3 -0
- package/lib/module/Components/index.js.map +1 -1
- package/lib/module/index.js +5 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.d.js +16 -0
- package/lib/module/types.d.js.map +1 -1
- package/lib/typescript/lib/commonjs/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts +109 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts +16 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts +16 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts +8 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts +14 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts +10 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts +11 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts +7 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts +6 -0
- package/lib/typescript/lib/commonjs/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/index.d.ts +8 -0
- package/lib/typescript/lib/commonjs/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts +20 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts +20 -0
- package/lib/typescript/lib/commonjs/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts +743 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts +56 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts +2 -0
- package/lib/typescript/lib/commonjs/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts +87 -0
- package/lib/typescript/lib/commonjs/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts +31 -0
- package/lib/typescript/lib/commonjs/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts +45 -0
- package/lib/typescript/lib/commonjs/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/index.d.ts +95 -0
- package/lib/typescript/lib/commonjs/Charts/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts +106 -0
- package/lib/typescript/lib/commonjs/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/types.d.ts +2 -0
- package/lib/typescript/lib/commonjs/Charts/types.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts +24 -0
- package/lib/typescript/lib/commonjs/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/index.d.ts +4 -0
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetRouter/api/index.d.ts +108 -0
- package/lib/typescript/lib/module/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts +16 -0
- package/lib/typescript/lib/module/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts +16 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts +14 -0
- package/lib/typescript/lib/module/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts +8 -0
- package/lib/typescript/lib/module/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts +15 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts +11 -0
- package/lib/typescript/lib/module/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts +12 -0
- package/lib/typescript/lib/module/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts +6 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
- package/lib/typescript/lib/module/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/index.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts +20 -0
- package/lib/typescript/lib/module/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts +9 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts +20 -0
- package/lib/typescript/lib/module/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts +742 -0
- package/lib/typescript/lib/module/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/config.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/contests.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts +55 -0
- package/lib/typescript/lib/module/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/index.d.ts +14 -0
- package/lib/typescript/lib/module/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/markets.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/orders.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/participants.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetRouter/types/partners.d.ts +2 -0
- package/lib/typescript/lib/module/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts +81 -0
- package/lib/typescript/lib/module/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts +31 -0
- package/lib/typescript/lib/module/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts +41 -0
- package/lib/typescript/lib/module/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/index.d.ts +6 -0
- package/lib/typescript/lib/module/Charts/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts +102 -0
- package/lib/typescript/lib/module/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/types.d.ts +2 -0
- package/lib/typescript/lib/module/Charts/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/Charts/utils/formatters.d.ts +14 -0
- package/lib/typescript/lib/module/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/lib/module/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/index.d.ts +1 -0
- package/lib/typescript/lib/module/Components/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts +3 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/BetRouter/api/index.d.ts +115 -0
- package/lib/typescript/src/BetRouter/api/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/api/types.d.ts +2 -0
- package/lib/typescript/src/BetRouter/api/types.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/AccountManager.d.ts +18 -0
- package/lib/typescript/src/BetRouter/components/AccountManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts +15 -0
- package/lib/typescript/src/BetRouter/components/AdminPortal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts +24 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts +19 -0
- package/lib/typescript/src/BetRouter/components/BuyOpportunityCard.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts +15 -0
- package/lib/typescript/src/BetRouter/components/ContestLiquidity.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts +13 -0
- package/lib/typescript/src/BetRouter/components/ContestSelector.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts +16 -0
- package/lib/typescript/src/BetRouter/components/MyOpportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts +21 -0
- package/lib/typescript/src/BetRouter/components/OpportunityDetailModal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts +20 -0
- package/lib/typescript/src/BetRouter/components/OpportunityHistory.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts +12 -0
- package/lib/typescript/src/BetRouter/components/PartnerCredentials.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts +18 -0
- package/lib/typescript/src/BetRouter/components/PlacedOpportunityModal.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/AutoFillView.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/ConfigManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts +4 -0
- package/lib/typescript/src/BetRouter/components/admin/JobManager.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts +9 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueContests.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts +8 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueInfo.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts +8 -0
- package/lib/typescript/src/BetRouter/components/admin/LeagueParticipants.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/index.d.ts +16 -0
- package/lib/typescript/src/BetRouter/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts +15 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopAdminLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts +44 -0
- package/lib/typescript/src/BetRouter/layouts/DesktopLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts +15 -0
- package/lib/typescript/src/BetRouter/layouts/MobileAdminLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts +44 -0
- package/lib/typescript/src/BetRouter/layouts/MobileLayout.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/accounts.d.ts +19 -0
- package/lib/typescript/src/BetRouter/types/accounts.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/api-contracts.d.ts +1071 -0
- package/lib/typescript/src/BetRouter/types/api-contracts.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/config.d.ts +12 -0
- package/lib/typescript/src/BetRouter/types/config.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/contests.d.ts +34 -0
- package/lib/typescript/src/BetRouter/types/contests.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/credentials.d.ts +24 -0
- package/lib/typescript/src/BetRouter/types/credentials.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/index.d.ts +14 -0
- package/lib/typescript/src/BetRouter/types/index.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/jobs.d.ts +35 -0
- package/lib/typescript/src/BetRouter/types/jobs.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/leagues.d.ts +26 -0
- package/lib/typescript/src/BetRouter/types/leagues.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/liquidity.d.ts +14 -0
- package/lib/typescript/src/BetRouter/types/liquidity.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/markets.d.ts +87 -0
- package/lib/typescript/src/BetRouter/types/markets.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/opportunities.d.ts +88 -0
- package/lib/typescript/src/BetRouter/types/opportunities.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/orders.d.ts +34 -0
- package/lib/typescript/src/BetRouter/types/orders.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/participants.d.ts +33 -0
- package/lib/typescript/src/BetRouter/types/participants.d.ts.map +1 -0
- package/lib/typescript/src/BetRouter/types/partners.d.ts +11 -0
- package/lib/typescript/src/BetRouter/types/partners.d.ts.map +1 -0
- package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts +117 -0
- package/lib/typescript/src/Charts/adapters/TradeChartAdapter.d.ts.map +1 -0
- package/lib/typescript/src/Charts/components/BaseLineChart.d.ts +40 -0
- package/lib/typescript/src/Charts/components/BaseLineChart.d.ts.map +1 -0
- package/lib/typescript/src/Charts/components/LivePriceChart.d.ts +13 -0
- package/lib/typescript/src/Charts/components/LivePriceChart.d.ts.map +1 -0
- package/lib/typescript/src/Charts/index.d.ts +28 -0
- package/lib/typescript/src/Charts/index.d.ts.map +1 -0
- package/lib/typescript/src/Charts/themes/chartTheme.d.ts +78 -0
- package/lib/typescript/src/Charts/themes/chartTheme.d.ts.map +1 -0
- package/lib/typescript/src/Charts/types.d.ts +155 -0
- package/lib/typescript/src/Charts/types.d.ts.map +1 -0
- package/lib/typescript/src/Charts/utils/formatters.d.ts +66 -0
- package/lib/typescript/src/Charts/utils/formatters.d.ts.map +1 -0
- package/lib/typescript/src/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +1 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/index.d.ts +1 -0
- package/lib/typescript/src/Components/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +4 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +4 -2
- package/src/ApiOverrides/index.ts +4 -0
- package/src/BetRouter/api/index.ts +854 -0
- package/src/BetRouter/api/types.ts +0 -0
- package/src/BetRouter/components/AccountManager.tsx +533 -0
- package/src/BetRouter/components/AdminPortal.tsx +44 -0
- package/src/BetRouter/components/BuyOpportunities.tsx +491 -0
- package/src/BetRouter/components/BuyOpportunityCard.tsx +331 -0
- package/src/BetRouter/components/ContestLiquidity.tsx +613 -0
- package/src/BetRouter/components/ContestSelector.tsx +179 -0
- package/src/BetRouter/components/MyOpportunities.tsx +279 -0
- package/src/BetRouter/components/MyOpportunities.tsx.bak +440 -0
- package/src/BetRouter/components/OpportunityDetailModal.tsx +360 -0
- package/src/BetRouter/components/OpportunityHistory.tsx +408 -0
- package/src/BetRouter/components/PartnerCredentials.tsx +212 -0
- package/src/BetRouter/components/PlacedOpportunityModal.tsx +192 -0
- package/src/BetRouter/components/admin/AutoFillView.tsx +275 -0
- package/src/BetRouter/components/admin/ConfigManager.tsx +596 -0
- package/src/BetRouter/components/admin/JobManager.tsx +758 -0
- package/src/BetRouter/components/admin/LeagueContests.tsx +2443 -0
- package/src/BetRouter/components/admin/LeagueInfo.tsx +253 -0
- package/src/BetRouter/components/admin/LeagueParticipants.tsx +662 -0
- package/src/BetRouter/index.tsx +453 -0
- package/src/BetRouter/layouts/DesktopAdminLayout.tsx +348 -0
- package/src/BetRouter/layouts/DesktopLayout.tsx +292 -0
- package/src/BetRouter/layouts/MobileAdminLayout.tsx +387 -0
- package/src/BetRouter/layouts/MobileLayout.tsx +325 -0
- package/src/BetRouter/types/ADMIN_PORTAL.md +863 -0
- package/src/BetRouter/types/ADMIN_PORTAL_SIMPLIFIED.md +1881 -0
- package/src/BetRouter/types/CREDENTIALS_EXAMPLE.md +350 -0
- package/src/BetRouter/types/LIQUIDITY_CLIENT_GUIDE.md +399 -0
- package/src/BetRouter/types/MARKET_LINKING_WORKFLOW.md +682 -0
- package/src/BetRouter/types/MARKET_LINKING_WORKFLOW_V2.md +627 -0
- package/src/BetRouter/types/README.md +249 -0
- package/src/BetRouter/types/accounts.ts +21 -0
- package/src/BetRouter/types/api-contracts.ts +1164 -0
- package/src/BetRouter/types/config.ts +12 -0
- package/src/BetRouter/types/contests.ts +37 -0
- package/src/BetRouter/types/credentials.ts +99 -0
- package/src/BetRouter/types/index.ts +16 -0
- package/src/BetRouter/types/jobs.ts +37 -0
- package/src/BetRouter/types/leagues.ts +29 -0
- package/src/BetRouter/types/liquidity.ts +15 -0
- package/src/BetRouter/types/markets.ts +94 -0
- package/src/BetRouter/types/opportunities.ts +107 -0
- package/src/BetRouter/types/orders.ts +51 -0
- package/src/BetRouter/types/participants.ts +34 -0
- package/src/BetRouter/types/partners.ts +10 -0
- package/src/Charts/README.md +310 -0
- package/src/Charts/adapters/TradeChartAdapter.ts +471 -0
- package/src/Charts/components/BaseLineChart.tsx +311 -0
- package/src/Charts/components/LivePriceChart.tsx +527 -0
- package/src/Charts/index.tsx +62 -0
- package/src/Charts/themes/chartTheme.ts +113 -0
- package/src/Charts/types.ts +160 -0
- package/src/Charts/utils/formatters.ts +182 -0
- package/src/Components/Dropdown.tsx +6 -3
- package/src/Components/Icons.tsx +12 -0
- package/src/Components/index.tsx +4 -0
- package/src/index.tsx +6 -0
- package/src/types.d.ts +410 -2
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Text, View } from '../../Components/Themed';
|
|
3
|
+
import { Modal, TouchableOpacity, FlatList, Dimensions } from 'react-native';
|
|
4
|
+
import { useColors } from '../../constants/useColors';
|
|
5
|
+
import { Icons } from '../../Components';
|
|
6
|
+
import type { OpportunityProps, RouterOrderProps, RouterPartnerProps } from '../types';
|
|
7
|
+
|
|
8
|
+
type PlacedOpportunityModalProps = {
|
|
9
|
+
visible: boolean;
|
|
10
|
+
opportunity: OpportunityProps | null;
|
|
11
|
+
orders: RouterOrderProps[];
|
|
12
|
+
partners: RouterPartnerProps[];
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
insets?: { top: number; bottom: number; left: number; right: number };
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const PlacedOpportunityModal = ({
|
|
18
|
+
visible,
|
|
19
|
+
opportunity,
|
|
20
|
+
orders,
|
|
21
|
+
partners,
|
|
22
|
+
onClose,
|
|
23
|
+
insets
|
|
24
|
+
}: PlacedOpportunityModalProps) => {
|
|
25
|
+
const Colors = useColors();
|
|
26
|
+
|
|
27
|
+
if (!opportunity) return null;
|
|
28
|
+
|
|
29
|
+
// Use status to determine which data to show
|
|
30
|
+
const isClosed = opportunity.status === 'closed';
|
|
31
|
+
const profit = isClosed ? (opportunity.actual_profit || 0) : (opportunity.expected_profit || 0);
|
|
32
|
+
const roi = isClosed ? (opportunity.actual_roi || 0) : (opportunity.expected_roi || 0);
|
|
33
|
+
const isProfitable = profit > 0;
|
|
34
|
+
const oppOrders = orders.filter(order => order.opportunity_id === opportunity.opportunity_id);
|
|
35
|
+
|
|
36
|
+
// Calculate available height respecting insets
|
|
37
|
+
const screenHeight = Dimensions.get('window').height;
|
|
38
|
+
const topInset = insets?.top || 0;
|
|
39
|
+
const bottomInset = insets?.bottom || 0;
|
|
40
|
+
const modalPadding = 32;
|
|
41
|
+
const maxModalHeight = screenHeight - topInset - bottomInset - modalPadding;
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<Modal
|
|
45
|
+
visible={visible}
|
|
46
|
+
transparent
|
|
47
|
+
animationType="fade"
|
|
48
|
+
onRequestClose={onClose}
|
|
49
|
+
>
|
|
50
|
+
<View style={{ flex: 1, backgroundColor: 'rgba(0,0,0,0.5)', justifyContent: 'center', alignItems: 'center', paddingTop: topInset, paddingBottom: bottomInset, paddingHorizontal: 16 }}>
|
|
51
|
+
<View type='body' style={{ width: '100%', maxWidth: 500, borderRadius: 12, height: maxModalHeight }}>
|
|
52
|
+
{/* Header */}
|
|
53
|
+
<View type='header' style={{ padding: 16, borderTopLeftRadius: 12, borderTopRightRadius: 12, flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}>
|
|
54
|
+
<View transparent style={{ flex: 1 }}>
|
|
55
|
+
<Text theme='h1' size={18}>
|
|
56
|
+
{opportunity.opportunity_type.toUpperCase()}
|
|
57
|
+
</Text>
|
|
58
|
+
<Text
|
|
59
|
+
theme='h2'
|
|
60
|
+
size={20}
|
|
61
|
+
color={isProfitable ? Colors.text.success : Colors.text.warning}
|
|
62
|
+
style={{ marginTop: 4 }}
|
|
63
|
+
>
|
|
64
|
+
${profit.toFixed(2)} profit
|
|
65
|
+
</Text>
|
|
66
|
+
</View>
|
|
67
|
+
<TouchableOpacity onPress={onClose}>
|
|
68
|
+
<Icons.CloseIcon size={24} color={Colors.text.h1} />
|
|
69
|
+
</TouchableOpacity>
|
|
70
|
+
</View>
|
|
71
|
+
|
|
72
|
+
{/* Content */}
|
|
73
|
+
<View style={{ flex: 1 }}>
|
|
74
|
+
<FlatList
|
|
75
|
+
data={oppOrders}
|
|
76
|
+
keyExtractor={(item, idx) => `${item.router_order_id}-${idx}`}
|
|
77
|
+
style={{ flex: 1 }}
|
|
78
|
+
contentContainerStyle={{ padding: 16 }}
|
|
79
|
+
renderItem={({ item: order }) => {
|
|
80
|
+
const hasResult = order.result !== null && order.result !== undefined;
|
|
81
|
+
const displayWinnings = hasResult ? order.net_winnings : order.potential_payout;
|
|
82
|
+
const winningsLabel = hasResult
|
|
83
|
+
? (order.result === 'win' ? '✓ Won'
|
|
84
|
+
: order.result === 'lose' ? '✗ Lost'
|
|
85
|
+
: order.result === 'push' ? '= Draw'
|
|
86
|
+
: order.result === 'cancelled' ? '✕ Cancelled'
|
|
87
|
+
: order.result)
|
|
88
|
+
: '⋯ Potential';
|
|
89
|
+
const partner = partners.find(p => p.partner_id === order.partner_id);
|
|
90
|
+
|
|
91
|
+
return (
|
|
92
|
+
<View transparent style={{
|
|
93
|
+
padding: 12,
|
|
94
|
+
backgroundColor: Colors.views.header,
|
|
95
|
+
borderRadius: 8,
|
|
96
|
+
marginBottom: 12,
|
|
97
|
+
borderWidth: 1,
|
|
98
|
+
borderColor: Colors.borders.light
|
|
99
|
+
}}>
|
|
100
|
+
<View transparent style={{ flexDirection: 'row', justifyContent: 'space-between', marginBottom: 8 }}>
|
|
101
|
+
<Text theme='h2' size={14}>
|
|
102
|
+
{partner?.name || 'Unknown'}
|
|
103
|
+
</Text>
|
|
104
|
+
<Text theme='h2' size={14}>
|
|
105
|
+
${order.amount?.toFixed(2)}
|
|
106
|
+
</Text>
|
|
107
|
+
</View>
|
|
108
|
+
|
|
109
|
+
<Text theme='description' size={13} style={{ marginBottom: 8 }}>
|
|
110
|
+
{order.title}
|
|
111
|
+
</Text>
|
|
112
|
+
|
|
113
|
+
<View transparent style={{ flexDirection: 'row', justifyContent: 'space-between', gap: 12, flexWrap: 'wrap' }}>
|
|
114
|
+
<View transparent>
|
|
115
|
+
<Text theme='description' size={11}>{winningsLabel}</Text>
|
|
116
|
+
<Text theme='h2' size={12} style={{ marginTop: 2 }}>
|
|
117
|
+
${displayWinnings?.toFixed(2) || '0.00'}
|
|
118
|
+
</Text>
|
|
119
|
+
</View>
|
|
120
|
+
|
|
121
|
+
<View transparent>
|
|
122
|
+
<Text theme='description' size={11}>Price</Text>
|
|
123
|
+
<Text theme='h2' size={12} style={{ marginTop: 2 }}>
|
|
124
|
+
{((order.price || 0) * 100).toFixed(1)}%
|
|
125
|
+
</Text>
|
|
126
|
+
</View>
|
|
127
|
+
|
|
128
|
+
<View transparent>
|
|
129
|
+
<Text theme='description' size={11}>Status</Text>
|
|
130
|
+
<Text theme='h2' size={12} style={{ marginTop: 2 }}>
|
|
131
|
+
{order.status}
|
|
132
|
+
</Text>
|
|
133
|
+
</View>
|
|
134
|
+
</View>
|
|
135
|
+
</View>
|
|
136
|
+
);
|
|
137
|
+
}}
|
|
138
|
+
ListFooterComponent={() => (
|
|
139
|
+
<View transparent style={{ marginTop: 8, paddingTop: 16, borderTopWidth: 1, borderTopColor: Colors.borders.light }}>
|
|
140
|
+
<View transparent style={{ flexDirection: 'row', justifyContent: 'space-between', marginBottom: 8 }}>
|
|
141
|
+
<Text theme='description' size={13}>{isClosed ? 'Invested' : 'Total Bet'}</Text>
|
|
142
|
+
<Text theme='h2' size={15}>
|
|
143
|
+
${opportunity.total_bet_amount.toFixed(2)}
|
|
144
|
+
</Text>
|
|
145
|
+
</View>
|
|
146
|
+
|
|
147
|
+
<View transparent style={{ flexDirection: 'row', justifyContent: 'space-between', marginBottom: 8 }}>
|
|
148
|
+
<Text theme='description' size={13}>{isClosed ? 'Actual ROI' : 'Expected ROI'}</Text>
|
|
149
|
+
<Text theme='h2' size={15}>
|
|
150
|
+
{(roi * 100).toFixed(1)}%
|
|
151
|
+
</Text>
|
|
152
|
+
</View>
|
|
153
|
+
|
|
154
|
+
<View transparent style={{ flexDirection: 'row', justifyContent: 'space-between', marginBottom: 8 }}>
|
|
155
|
+
<Text theme='description' size={13}>Total Winnings</Text>
|
|
156
|
+
<Text theme='h2' size={15}>
|
|
157
|
+
${opportunity.total_winnings.toFixed(2)}
|
|
158
|
+
</Text>
|
|
159
|
+
</View>
|
|
160
|
+
|
|
161
|
+
<View transparent style={{ flexDirection: 'row', justifyContent: 'space-between', marginBottom: 8 }}>
|
|
162
|
+
<Text theme='description' size={13}>Total Fees</Text>
|
|
163
|
+
<Text theme='h2' size={15}>
|
|
164
|
+
${opportunity.total_fees.toFixed(2)}
|
|
165
|
+
</Text>
|
|
166
|
+
</View>
|
|
167
|
+
|
|
168
|
+
<View transparent style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
|
|
169
|
+
<Text theme='description' size={13}>{isClosed ? 'Profit' : 'Fill Status'}</Text>
|
|
170
|
+
{isClosed ? (
|
|
171
|
+
<Text theme='h2' size={15} color={isProfitable ? Colors.text.success : Colors.text.error}>
|
|
172
|
+
${profit.toFixed(2)}
|
|
173
|
+
</Text>
|
|
174
|
+
) : (
|
|
175
|
+
<Text theme='h2' size={15}>
|
|
176
|
+
{opportunity.fill_status === 'all_filled' ? '✓ All filled' :
|
|
177
|
+
opportunity.fill_status === 'partially_filled' ? '⚠ Partial' :
|
|
178
|
+
opportunity.fill_status === 'failed' ? '✗ Failed' : '⋯ Pending'}
|
|
179
|
+
</Text>
|
|
180
|
+
)}
|
|
181
|
+
</View>
|
|
182
|
+
</View>
|
|
183
|
+
)}
|
|
184
|
+
/>
|
|
185
|
+
</View>
|
|
186
|
+
</View>
|
|
187
|
+
</View>
|
|
188
|
+
</Modal>
|
|
189
|
+
);
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export default PlacedOpportunityModal;
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { View, Text, Button } from "../../../Components/Themed";
|
|
3
|
+
import { ActivityIndicator } from 'react-native';
|
|
4
|
+
import { useColors } from '../../../constants/useColors';
|
|
5
|
+
import { BetRouterApi } from '../../api';
|
|
6
|
+
import { Icons, SearchBox } from '../../../Components';
|
|
7
|
+
import Switch from '../../../Components/Switch';
|
|
8
|
+
import moment from 'moment-mini';
|
|
9
|
+
import type {
|
|
10
|
+
RouterContestProps,
|
|
11
|
+
MarketContestProps,
|
|
12
|
+
RouterMarketProps
|
|
13
|
+
} from '../../types';
|
|
14
|
+
|
|
15
|
+
type AutoFillData = {
|
|
16
|
+
router_contests: RouterContestProps[];
|
|
17
|
+
market_contests: MarketContestProps[];
|
|
18
|
+
loading: boolean;
|
|
19
|
+
searchValue: string;
|
|
20
|
+
router_markets: RouterMarketProps[];
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const AutoFillView = () => {
|
|
24
|
+
const Colors = useColors();
|
|
25
|
+
|
|
26
|
+
const [data, setData] = useState<AutoFillData>({
|
|
27
|
+
router_contests: [],
|
|
28
|
+
market_contests: [],
|
|
29
|
+
loading: true,
|
|
30
|
+
searchValue: '',
|
|
31
|
+
router_markets: []
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
loadAutoFillData();
|
|
36
|
+
loadRouterMarkets();
|
|
37
|
+
}, []);
|
|
38
|
+
|
|
39
|
+
const loadAutoFillData = async () => {
|
|
40
|
+
setData(prev => ({ ...prev, loading: true }));
|
|
41
|
+
try {
|
|
42
|
+
const result = await BetRouterApi.BetRouter.ContestApi.getAutoFillContests();
|
|
43
|
+
setData(prev => ({
|
|
44
|
+
...prev,
|
|
45
|
+
router_contests: result.router_contests || [],
|
|
46
|
+
market_contests: result.market_contests || [],
|
|
47
|
+
loading: false
|
|
48
|
+
}));
|
|
49
|
+
} catch (error) {
|
|
50
|
+
console.error('Failed to load auto-fill data:', error);
|
|
51
|
+
alert('Error loading auto-fill data: ' + (error as any).message);
|
|
52
|
+
setData(prev => ({ ...prev, loading: false }));
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const loadRouterMarkets = async () => {
|
|
57
|
+
try {
|
|
58
|
+
const markets = await BetRouterApi.BetRouter.MarketApi.getRouterMarkets();
|
|
59
|
+
setData(prev => ({ ...prev, router_markets: Array.isArray(markets) ? markets : [] }));
|
|
60
|
+
} catch (error) {
|
|
61
|
+
console.error('Failed to load router markets:', error);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const toggleContestAutoFill = async (contest: RouterContestProps) => {
|
|
66
|
+
try {
|
|
67
|
+
setData(prev => ({ ...prev, loading: true }));
|
|
68
|
+
await BetRouterApi.BetRouter.ContestApi.updateRouterContest(
|
|
69
|
+
contest.router_contest_id,
|
|
70
|
+
{ auto_fill: !contest.auto_fill }
|
|
71
|
+
);
|
|
72
|
+
await loadAutoFillData();
|
|
73
|
+
} catch (error) {
|
|
74
|
+
console.error('Error updating contest auto-fill:', error);
|
|
75
|
+
alert('Error updating contest: ' + (error as any).message);
|
|
76
|
+
setData(prev => ({ ...prev, loading: false }));
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
const toggleMarketContestAutoFill = async (marketContest: MarketContestProps) => {
|
|
81
|
+
try {
|
|
82
|
+
setData(prev => ({ ...prev, loading: true }));
|
|
83
|
+
await BetRouterApi.BetRouter.MarketApi.updateMarketContest(
|
|
84
|
+
marketContest.market_contest_id,
|
|
85
|
+
{ auto_fill: !marketContest.auto_fill }
|
|
86
|
+
);
|
|
87
|
+
await loadAutoFillData();
|
|
88
|
+
} catch (error) {
|
|
89
|
+
console.error('Error updating market contest auto-fill:', error);
|
|
90
|
+
alert('Error updating market contest: ' + (error as any).message);
|
|
91
|
+
setData(prev => ({ ...prev, loading: false }));
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const getMarketName = (router_market_id: string) => {
|
|
96
|
+
const market = data.router_markets.find(m => m.router_market_id === router_market_id);
|
|
97
|
+
return market?.market_label || router_market_id;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const getMarketContestsForContest = (router_contest_id: string) => {
|
|
101
|
+
return data.market_contests.filter(mc => mc.router_contest_id === router_contest_id);
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const filteredContests = data.router_contests.filter(contest =>
|
|
105
|
+
data.searchValue === '' ||
|
|
106
|
+
contest.contest_label.toLowerCase().includes(data.searchValue.toLowerCase()) ||
|
|
107
|
+
contest.contest_label.toLowerCase().includes(data.searchValue.toLowerCase()) ||
|
|
108
|
+
contest.router_contest_id.toLowerCase().includes(data.searchValue.toLowerCase())
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
if (data.loading) {
|
|
112
|
+
return (
|
|
113
|
+
<View transparent style={{ padding: 40, alignItems: 'center' }}>
|
|
114
|
+
<ActivityIndicator size="large" color={Colors.text.h1} />
|
|
115
|
+
</View>
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return (
|
|
120
|
+
<View transparent style={{ flex: 1 }}>
|
|
121
|
+
{/* Header */}
|
|
122
|
+
<View transparent style={{ marginBottom: 24 }}>
|
|
123
|
+
<View transparent style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}>
|
|
124
|
+
<View transparent>
|
|
125
|
+
<Text theme='h1' size={24}>Auto-Fill Manager</Text>
|
|
126
|
+
<Text theme='description' size={14} style={{ marginTop: 8 }}>
|
|
127
|
+
View and manage all contests and markets that are currently auto-filling
|
|
128
|
+
</Text>
|
|
129
|
+
</View>
|
|
130
|
+
<Button
|
|
131
|
+
type='action'
|
|
132
|
+
title='Refresh'
|
|
133
|
+
onPress={loadAutoFillData}
|
|
134
|
+
/>
|
|
135
|
+
</View>
|
|
136
|
+
</View>
|
|
137
|
+
|
|
138
|
+
{/* Stats Cards */}
|
|
139
|
+
<View transparent style={{ flexDirection: 'row', gap: 16, marginBottom: 24 }}>
|
|
140
|
+
<View type='body' style={{ flex: 1, padding: 16, borderRadius: 8, borderWidth: 1, borderColor: Colors.borders.light }}>
|
|
141
|
+
<Text theme='description' size={12}>CONTESTS WITH AUTO-FILL</Text>
|
|
142
|
+
<Text theme='h1' size={32} style={{ marginTop: 8 }}>{data.router_contests.length}</Text>
|
|
143
|
+
<Text theme='description' size={11} style={{ marginTop: 4 }}>
|
|
144
|
+
Total router contests
|
|
145
|
+
</Text>
|
|
146
|
+
</View>
|
|
147
|
+
|
|
148
|
+
<View type='body' style={{ flex: 1, padding: 16, borderRadius: 8, borderWidth: 1, borderColor: Colors.borders.light }}>
|
|
149
|
+
<Text theme='description' size={12}>MARKETS WITH AUTO-FILL</Text>
|
|
150
|
+
<Text theme='h1' size={32} style={{ marginTop: 8 }}>{data.market_contests.length}</Text>
|
|
151
|
+
<Text theme='description' size={11} style={{ marginTop: 4 }}>
|
|
152
|
+
Total market auto-fills
|
|
153
|
+
</Text>
|
|
154
|
+
</View>
|
|
155
|
+
</View>
|
|
156
|
+
|
|
157
|
+
{/* Search Box */}
|
|
158
|
+
<View transparent style={{ marginBottom: 16 }}>
|
|
159
|
+
<SearchBox
|
|
160
|
+
placeholder="Search contests..."
|
|
161
|
+
onChange={(text) => setData(prev => ({ ...prev, searchValue: text }))}
|
|
162
|
+
hide_search_button
|
|
163
|
+
/>
|
|
164
|
+
</View>
|
|
165
|
+
|
|
166
|
+
{/* Contest List */}
|
|
167
|
+
<View type='body' style={{ borderRadius: 8, borderWidth: 1, borderColor: Colors.borders.light, overflow: 'hidden' }}>
|
|
168
|
+
<View type='header' style={{ padding: 16 }}>
|
|
169
|
+
<Text theme='h2' size={16}>Auto-Fill Contests</Text>
|
|
170
|
+
<Text theme='description' size={12} style={{ marginTop: 4 }}>
|
|
171
|
+
{filteredContests.length} contest{filteredContests.length !== 1 ? 's' : ''} with auto-fill enabled
|
|
172
|
+
</Text>
|
|
173
|
+
</View>
|
|
174
|
+
|
|
175
|
+
<View transparent style={{ padding: 16 }}>
|
|
176
|
+
{filteredContests.length === 0 ? (
|
|
177
|
+
<View transparent style={{ padding: 40, alignItems: 'center' }}>
|
|
178
|
+
<Icons.AlertIcon size={48} color={Colors.text.descriptionLight} />
|
|
179
|
+
<Text theme='description' size={14} style={{ marginTop: 16, textAlign: 'center' }}>
|
|
180
|
+
{data.searchValue
|
|
181
|
+
? 'No contests match your search'
|
|
182
|
+
: 'No contests with auto-fill enabled'}
|
|
183
|
+
</Text>
|
|
184
|
+
</View>
|
|
185
|
+
) : (
|
|
186
|
+
filteredContests.map((contest) => {
|
|
187
|
+
const marketContests = getMarketContestsForContest(contest.router_contest_id);
|
|
188
|
+
return (
|
|
189
|
+
<View
|
|
190
|
+
key={contest.router_contest_id}
|
|
191
|
+
transparent
|
|
192
|
+
style={{
|
|
193
|
+
marginBottom: 12,
|
|
194
|
+
padding: 16,
|
|
195
|
+
backgroundColor: Colors.views.header,
|
|
196
|
+
borderRadius: 8,
|
|
197
|
+
borderWidth: 1,
|
|
198
|
+
borderColor: Colors.borders.light
|
|
199
|
+
}}
|
|
200
|
+
>
|
|
201
|
+
{/* Contest Header */}
|
|
202
|
+
<View transparent style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'flex-start', marginBottom: 8 }}>
|
|
203
|
+
<View transparent style={{ flex: 1 }}>
|
|
204
|
+
<Text theme='h2' size={16}>{contest.contest_label}</Text>
|
|
205
|
+
<Text theme='description' size={12} style={{ marginTop: 4 }}>
|
|
206
|
+
{contest.contest_label}
|
|
207
|
+
</Text>
|
|
208
|
+
<Text theme='description' size={11} style={{ marginTop: 4 }}>
|
|
209
|
+
{moment(contest.scheduled_datetime).format('ddd, MMM D, YYYY [at] h:mm A')}
|
|
210
|
+
</Text>
|
|
211
|
+
</View>
|
|
212
|
+
<View transparent style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
|
|
213
|
+
<Text theme='description' size={12}>Auto-fill:</Text>
|
|
214
|
+
<Switch
|
|
215
|
+
value={contest.auto_fill ?? false}
|
|
216
|
+
switch_type='on_off'
|
|
217
|
+
size={14}
|
|
218
|
+
onChange={(_) => toggleContestAutoFill(contest)}
|
|
219
|
+
/>
|
|
220
|
+
</View>
|
|
221
|
+
</View>
|
|
222
|
+
|
|
223
|
+
{/* Market Contests */}
|
|
224
|
+
{marketContests.length > 0 && (
|
|
225
|
+
<View transparent style={{ marginTop: 12, paddingTop: 12, borderTopWidth: 1, borderTopColor: Colors.borders.light }}>
|
|
226
|
+
<Text theme='description' size={11} style={{ marginBottom: 8, textTransform: 'uppercase' }}>
|
|
227
|
+
Markets with Auto-Fill ({marketContests.length})
|
|
228
|
+
</Text>
|
|
229
|
+
{marketContests.map((mc) => (
|
|
230
|
+
<View
|
|
231
|
+
key={mc.market_contest_id}
|
|
232
|
+
transparent
|
|
233
|
+
style={{
|
|
234
|
+
flexDirection: 'row',
|
|
235
|
+
justifyContent: 'space-between',
|
|
236
|
+
alignItems: 'center',
|
|
237
|
+
paddingVertical: 8,
|
|
238
|
+
paddingHorizontal: 12,
|
|
239
|
+
backgroundColor: Colors.views.header,
|
|
240
|
+
borderRadius: 6,
|
|
241
|
+
marginBottom: 6
|
|
242
|
+
}}
|
|
243
|
+
>
|
|
244
|
+
<View transparent style={{ flex: 1 }}>
|
|
245
|
+
<Text theme='h2' size={13}>
|
|
246
|
+
{getMarketName(mc.router_market_id)}
|
|
247
|
+
</Text>
|
|
248
|
+
<Text theme='description' size={10} style={{ marginTop: 2 }}>
|
|
249
|
+
{mc.market_contest_id}
|
|
250
|
+
</Text>
|
|
251
|
+
</View>
|
|
252
|
+
<View transparent style={{ flexDirection: 'row', alignItems: 'center', gap: 8 }}>
|
|
253
|
+
<Text theme='description' size={11}>Auto-fill:</Text>
|
|
254
|
+
<Switch
|
|
255
|
+
value={mc.auto_fill ?? false}
|
|
256
|
+
switch_type='on_off'
|
|
257
|
+
size={12}
|
|
258
|
+
onChange={(_) => toggleMarketContestAutoFill(mc)}
|
|
259
|
+
/>
|
|
260
|
+
</View>
|
|
261
|
+
</View>
|
|
262
|
+
))}
|
|
263
|
+
</View>
|
|
264
|
+
)}
|
|
265
|
+
</View>
|
|
266
|
+
);
|
|
267
|
+
})
|
|
268
|
+
)}
|
|
269
|
+
</View>
|
|
270
|
+
</View>
|
|
271
|
+
</View>
|
|
272
|
+
);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
export default AutoFillView;
|