mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Merge branch 'main' into feature/compute
This commit is contained in:
commit
118bfb93a9
@ -11,7 +11,7 @@ const Markdown = ({
|
|||||||
}): ReactElement => {
|
}): ReactElement => {
|
||||||
// fix react-markdown \n transformation
|
// fix react-markdown \n transformation
|
||||||
// https://github.com/rexxars/react-markdown/issues/105#issuecomment-351585313
|
// https://github.com/rexxars/react-markdown/issues/105#issuecomment-351585313
|
||||||
const textCleaned = text.replace(/\\n/g, '\n ')
|
const textCleaned = text?.replace(/\\n/g, '\n ')
|
||||||
return (
|
return (
|
||||||
<ReactMarkdown
|
<ReactMarkdown
|
||||||
source={textCleaned}
|
source={textCleaned}
|
||||||
|
@ -103,7 +103,6 @@ export default function FormTrade({
|
|||||||
toast.error(error.message)
|
toast.error(error.message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Formik
|
<Formik
|
||||||
initialValues={initialValues}
|
initialValues={initialValues}
|
||||||
@ -129,7 +128,7 @@ export default function FormTrade({
|
|||||||
) : (
|
) : (
|
||||||
<div className={styles.alertWrap}>
|
<div className={styles.alertWrap}>
|
||||||
<Alert
|
<Alert
|
||||||
text={content.warning.main}
|
text={content.warning}
|
||||||
state="info"
|
state="info"
|
||||||
action={{
|
action={{
|
||||||
name: 'I understand',
|
name: 'I understand',
|
||||||
|
@ -54,7 +54,7 @@ export default function AssetContent(props: AssetContentProps): ReactElement {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!price) return
|
if (!price) return
|
||||||
setShowPricing(isOwner && price.address === '')
|
setShowPricing(isOwner && price.type === '')
|
||||||
}, [isOwner, price])
|
}, [isOwner, price])
|
||||||
|
|
||||||
function handleEditButton() {
|
function handleEditButton() {
|
||||||
|
@ -29,7 +29,7 @@ export default function PublishedList(): ReactElement {
|
|||||||
query: `(publicKey.owner:${accountId})`
|
query: `(publicKey.owner:${accountId})`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
sort: { 'price.ocean': -1 }
|
sort: { created: -1 }
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
queryResult || setIsLoading(true)
|
queryResult || setIsLoading(true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user