generated from Luis/nextjs-python-web-template
fix formatting
This commit is contained in:
@@ -22,7 +22,9 @@ export default function AccessPoint() {
|
|||||||
.then((resp) =>
|
.then((resp) =>
|
||||||
resp.json().then((jsonData) => {
|
resp.json().then((jsonData) => {
|
||||||
console.log(jsonData);
|
console.log(jsonData);
|
||||||
jsonData.length > 0 ? setRepositoryData(jsonData) : setRepositoryData(APServiceRepositoryDummyData);
|
jsonData.length > 0
|
||||||
|
? setRepositoryData(jsonData)
|
||||||
|
: setRepositoryData(APServiceRepositoryDummyData);
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then()
|
.then()
|
||||||
|
|||||||
@@ -23,7 +23,9 @@ export default function Client1() {
|
|||||||
.then((resp) =>
|
.then((resp) =>
|
||||||
resp.json().then((jsonData) => {
|
resp.json().then((jsonData) => {
|
||||||
console.log(jsonData);
|
console.log(jsonData);
|
||||||
jsonData.length > 0 ? setConsumerData(jsonData) : setConsumerData(Client1ConsumerData);
|
jsonData.length > 0
|
||||||
|
? setConsumerData(jsonData)
|
||||||
|
: setConsumerData(Client1ConsumerData);
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then()
|
.then()
|
||||||
@@ -36,7 +38,9 @@ export default function Client1() {
|
|||||||
.then((resp) =>
|
.then((resp) =>
|
||||||
resp.json().then((jsonData) => {
|
resp.json().then((jsonData) => {
|
||||||
console.log(jsonData);
|
console.log(jsonData);
|
||||||
jsonData.length > 0 ? setProducerData(jsonData) : setProducerData(Client1ProducerData);
|
jsonData.length > 0
|
||||||
|
? setProducerData(jsonData)
|
||||||
|
: setProducerData(Client1ProducerData);
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then()
|
.then()
|
||||||
|
|||||||
@@ -23,7 +23,9 @@ export default function Client1() {
|
|||||||
.then((resp) =>
|
.then((resp) =>
|
||||||
resp.json().then((jsonData) => {
|
resp.json().then((jsonData) => {
|
||||||
console.log(jsonData);
|
console.log(jsonData);
|
||||||
jsonData.length > 0 ? setConsumerData(jsonData) : setConsumerData(Client2ConsumerData);
|
jsonData.length > 0
|
||||||
|
? setConsumerData(jsonData)
|
||||||
|
: setConsumerData(Client2ConsumerData);
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then()
|
.then()
|
||||||
@@ -36,7 +38,9 @@ export default function Client1() {
|
|||||||
.then((resp) =>
|
.then((resp) =>
|
||||||
resp.json().then((jsonData) => {
|
resp.json().then((jsonData) => {
|
||||||
console.log(jsonData);
|
console.log(jsonData);
|
||||||
jsonData.length > 0 ? setProducerData(jsonData) : setProducerData(Client2ProducerData);
|
jsonData.length > 0
|
||||||
|
? setProducerData(jsonData)
|
||||||
|
: setProducerData(Client2ProducerData);
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then()
|
.then()
|
||||||
|
|||||||
@@ -17,7 +17,9 @@ export default function Home() {
|
|||||||
.then((resp) =>
|
.then((resp) =>
|
||||||
resp.json().then((jsonData) => {
|
resp.json().then((jsonData) => {
|
||||||
console.log(jsonData);
|
console.log(jsonData);
|
||||||
jsonData.length > 0 ? setHomeData(jsonData) : setHomeData(HomeDummyData);
|
jsonData.length > 0
|
||||||
|
? setHomeData(jsonData)
|
||||||
|
: setHomeData(HomeDummyData);
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then()
|
.then()
|
||||||
|
|||||||
Reference in New Issue
Block a user