From ac2daf42db51e53aaad2577ccb21089331490939 Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 9 Jan 2023 16:00:58 +0000 Subject: [PATCH] refactor: use `tbody` to fix ` cannot appear as a child of . Add a , or to your code to match the DOM tree generated by the browser.` --- .../modals/main/marketplace/Item.jsx | 40 ++++++++++--------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/src/components/modals/main/marketplace/Item.jsx b/src/components/modals/main/marketplace/Item.jsx index 384c43b5..d80cd395 100644 --- a/src/components/modals/main/marketplace/Item.jsx +++ b/src/components/modals/main/marketplace/Item.jsx @@ -126,16 +126,18 @@ export default class Item extends PureComponent { {this.props.data.data.quotes ? ( <>
- - - - - {this.props.data.data.quotes.slice(0, this.state.count).map((quote, index) => ( - - - + + + + - ))} + {this.props.data.data.quotes.slice(0, this.state.count).map((quote, index) => ( + + + + + ))} +
{variables.getMessage('modals.main.settings.sections.quote.title')}{variables.getMessage('modals.main.settings.sections.quote.author')}
{quote.quote}{quote.author}
{variables.getMessage('modals.main.settings.sections.quote.title')}{variables.getMessage('modals.main.settings.sections.quote.author')}
{quote.quote}{quote.author}
this.incrementCount('quotes')}> @@ -157,16 +159,18 @@ export default class Item extends PureComponent { {this.props.data.data.settings ? ( <> - - - - - {Object.entries(this.props.data.data.settings).slice(0, this.state.count).map(([key, value]) => ( - - - + + + + - ))} + {Object.entries(this.props.data.data.settings).slice(0, this.state.count).map(([key, value]) => ( + + + + + ))} +
{variables.getMessage('modals.main.marketplace.product.setting')}{variables.getMessage('modals.main.marketplace.product.value')}
{key}{value}
{variables.getMessage('modals.main.marketplace.product.setting')}{variables.getMessage('modals.main.marketplace.product.value')}
{key}{value}
this.incrementCount('settings')}>