From fd49ccea39b94f4cbfa9aa80f4f03f52ed4b1f7a Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sat, 21 May 2022 14:33:10 -0700 Subject: [PATCH] Use triangles instead of planes --- web/components/contract/contract-card.tsx | 16 ++++++++-------- web/lib/icons/triangle-fill-icon.tsx | 16 ++++++++++++++++ web/lib/icons/triangle-icon.tsx | 13 +++++++++++++ 3 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 web/lib/icons/triangle-fill-icon.tsx create mode 100644 web/lib/icons/triangle-icon.tsx diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index 43f009a0..8e85c5d3 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -27,8 +27,8 @@ import { import { getOutcomeProbability, getTopAnswer } from 'common/calculate' import { AvatarDetails, MiscDetails } from './contract-details' import { getExpectedValue, getValueFromBucket } from 'common/calculate-dpm' -import { PaperAirplaneIcon } from '@heroicons/react/outline' -import { PaperAirplaneIcon as SolidPlaneIcon } from '@heroicons/react/solid' +import TriangleIcon from 'web/lib/icons/triangle-icon' +import TriangleFillIcon from 'web/lib/icons/triangle-fill-icon' // Return a number from 0 to 1 for this contract // Resolved contracts are set to 1, for coloring purposes (even if NO) @@ -128,11 +128,11 @@ export function ContractCard(props: { {contract.createdTime % 3 == 0 ? ( - ) : ( - + )} {outcomeType === 'BINARY' && ( @@ -158,11 +158,11 @@ export function ContractCard(props: { )} {contract.createdTime % 3 == 2 ? ( - ) : ( - + )} diff --git a/web/lib/icons/triangle-fill-icon.tsx b/web/lib/icons/triangle-fill-icon.tsx new file mode 100644 index 00000000..e24c005f --- /dev/null +++ b/web/lib/icons/triangle-fill-icon.tsx @@ -0,0 +1,16 @@ +// Icon from Bootstrap: https://icons.getbootstrap.com/ +export default function TriangleFillIcon(props: { className?: string }) { + return ( + + + + ) +} diff --git a/web/lib/icons/triangle-icon.tsx b/web/lib/icons/triangle-icon.tsx new file mode 100644 index 00000000..813808b7 --- /dev/null +++ b/web/lib/icons/triangle-icon.tsx @@ -0,0 +1,13 @@ +// Icon from Bootstrap: https://icons.getbootstrap.com/ +export default function TriangleIcon(props: { className?: string }) { + return ( + + + + ) +}