-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
speed up development builds slightly (#1990)
* move group button class import out * Add cleanup function to search-context listener * move ContractSeo to it's own file
- Loading branch information
Showing
7 changed files
with
39 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Contract } from 'common/contract' | ||
import { getSeoDescription, getContractOGProps } from 'common/contract-seo' | ||
import { removeUndefinedProps } from 'common/util/object' | ||
import { SEO } from '../SEO' | ||
|
||
export function ContractSEO(props: { | ||
contract: Contract | ||
/** Base64 encoded points */ | ||
points?: string | ||
}) { | ||
const { contract, points } = props | ||
const { question, creatorUsername, slug } = contract | ||
|
||
const seoDesc = getSeoDescription(contract) | ||
const ogCardProps = removeUndefinedProps({ | ||
...getContractOGProps(contract), | ||
points, | ||
}) | ||
|
||
return ( | ||
<SEO | ||
title={question} | ||
description={seoDesc} | ||
url={`/${creatorUsername}/${slug}`} | ||
ogProps={{ props: ogCardProps, endpoint: 'market' }} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4b3ec91
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
docs – ./docs
docs-pi-teal.vercel.app
docs-mantic.vercel.app
docs-git-main-mantic.vercel.app
docs.manifold.markets
4b3ec91
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
prod – ./web
prod-mantic.vercel.app
www.manifold.markets
prod-git-main-mantic.vercel.app
mantic.vercel.app
manifold.markets
4b3ec91
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
dev – ./web
dev-manifold.vercel.app
dev-git-main-mantic.vercel.app
dev.manifold.markets
dev-mantic.vercel.app