mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex-taker-v2.git
synced 2026-09-21 16:52:01 -07:00
Adding note for update to v18 of react
This commit is contained in:
+1
-1
@@ -146,7 +146,7 @@ function GetRestUrl (props) {
|
||||
const [restURL] = useQueryParam('restURL', StringParam)
|
||||
// console.log('restURL: ', restURL)
|
||||
|
||||
if(restURL) {
|
||||
if (restURL) {
|
||||
serverUrl = restURL
|
||||
queryParamExists = true
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ class Placeholder2 extends React.Component {
|
||||
render () {
|
||||
return (
|
||||
<>
|
||||
<p style={{padding: '25px'}}>This is placeholder View #2</p>
|
||||
<p style={{ padding: '25px' }}>This is placeholder View #2</p>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ class Placeholder3 extends React.Component {
|
||||
render () {
|
||||
return (
|
||||
<>
|
||||
<p style={{padding: '25px'}}>This is placeholder View #3</p>
|
||||
<p style={{ padding: '25px' }}>This is placeholder View #3</p>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ class ServerSelect extends React.Component {
|
||||
Having trouble loading? Try selecting a different back-end server.
|
||||
</h5>
|
||||
<Form.Select onChange={(values) => this.selectServer(values)}>
|
||||
<option>{this.props.queryParamExists ? (`${this.props.displayUrl}`) : (`Choose a back-end server`)}</option>
|
||||
<option>{this.props.queryParamExists ? (`${this.props.displayUrl}`) : ('Choose a back-end server')}</option>
|
||||
{items}
|
||||
</Form.Select>
|
||||
<br />
|
||||
|
||||
@@ -13,3 +13,6 @@ ReactDOM.render(
|
||||
</QueryParamProvider>
|
||||
</>
|
||||
, document.getElementById('root'))
|
||||
|
||||
// Updating to React v18
|
||||
// https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-client-rendering-apis
|
||||
|
||||
Reference in New Issue
Block a user