0 && 'mt-4')}
+ contract={contract}
+ />
+
{/* Show a delete button for contracts without any trading */}
diff --git a/web/components/fold-tag.tsx b/web/components/fold-tag.tsx
new file mode 100644
index 00000000..3ecb2c22
--- /dev/null
+++ b/web/components/fold-tag.tsx
@@ -0,0 +1,17 @@
+import clsx from 'clsx'
+import { Fold } from '../../common/fold'
+
+export function FoldTag(props: { fold: Fold }) {
+ const { fold } = props
+ const { name } = fold
+ return (
+
+ {name}
+
+ )
+}
diff --git a/web/components/tags-input.tsx b/web/components/tags-input.tsx
index 5da8283b..98818008 100644
--- a/web/components/tags-input.tsx
+++ b/web/components/tags-input.tsx
@@ -1,11 +1,13 @@
+import clsx from 'clsx'
import { useState } from 'react'
import { parseWordsAsTags } from '../../common/util/parse'
import { Contract, updateContract } from '../lib/firebase/contracts'
+import { Col } from './layout/col'
import { Row } from './layout/row'
-import { TagsList } from './tags-list'
+import { CompactTagsList } from './tags-list'
-export function TagsInput(props: { contract: Contract }) {
- const { contract } = props
+export function TagsInput(props: { contract: Contract; className?: string }) {
+ const { contract, className } = props
const { tags } = contract
const [tagText, setTagText] = useState('')
@@ -24,8 +26,8 @@ export function TagsInput(props: { contract: Contract }) {
}
return (
-
- `#${tag}`)} />
+
+ `#${tag}`)} />
-
+
)
}
+
+export function RevealableTagsInput(props: {
+ contract: Contract
+ className?: string
+}) {
+ const { contract, className } = props
+ const [hidden, setHidden] = useState(true)
+
+ if (hidden)
+ return (
+ setHidden((hidden) => !hidden)}
+ >
+ Show tags
+
+ )
+ return
+}
diff --git a/web/components/tags-list.tsx b/web/components/tags-list.tsx
index c8d0f815..cf6e6c5e 100644
--- a/web/components/tags-list.tsx
+++ b/web/components/tags-list.tsx
@@ -2,6 +2,7 @@ import clsx from 'clsx'
import { Row } from './layout/row'
import { Linkify } from './linkify'
import { SiteLink } from './site-link'
+import { Fold } from '../../common/fold'
export function Hashtag(props: { tag: string; noLink?: boolean }) {
const { tag, noLink } = props
@@ -51,3 +52,36 @@ export function CompactTagsList(props: { tags: string[] }) {