Link to All Markets from header
This commit is contained in:
parent
fe6531cf78
commit
1da3cc7725
|
@ -33,6 +33,12 @@ function SignInLink(props: { darkBackground?: boolean }) {
|
||||||
<>
|
<>
|
||||||
{user ? (
|
{user ? (
|
||||||
<>
|
<>
|
||||||
|
<Link href="/markets">
|
||||||
|
<a className={clsx('text-base font-medium', themeClasses)}>
|
||||||
|
All markets
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
|
|
||||||
<Link href="/contract">
|
<Link href="/contract">
|
||||||
<a className={clsx('text-base font-medium', themeClasses)}>
|
<a className={clsx('text-base font-medium', themeClasses)}>
|
||||||
Create a market
|
Create a market
|
||||||
|
|
|
@ -90,7 +90,7 @@ export default function Markets() {
|
||||||
|
|
||||||
const [query, setQuery] = useState('')
|
const [query, setQuery] = useState('')
|
||||||
type Sort = 'createdTime' | 'volume'
|
type Sort = 'createdTime' | 'volume'
|
||||||
const [sort, setSort] = useState('createdTime')
|
const [sort, setSort] = useState('volume')
|
||||||
|
|
||||||
function check(corpus: String) {
|
function check(corpus: String) {
|
||||||
return corpus.toLowerCase().includes(query.toLowerCase())
|
return corpus.toLowerCase().includes(query.toLowerCase())
|
||||||
|
@ -132,8 +132,8 @@ export default function Markets() {
|
||||||
value={sort}
|
value={sort}
|
||||||
onChange={(e) => setSort(e.target.value as Sort)}
|
onChange={(e) => setSort(e.target.value as Sort)}
|
||||||
>
|
>
|
||||||
<option value="createdTime">Newest first</option>
|
|
||||||
<option value="volume">Most traded</option>
|
<option value="volume">Most traded</option>
|
||||||
|
<option value="createdTime">Newest first</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user