render() { const {user} = this.state return ( <> <section className="user-panel-data"> <h4> Adres: </h4> <p>{user.firstname} {user.lastname}</p> <p>{user.address}</p> <p>{user.zipCode} {user.city}</p> <h4> Dane kontaktowe: </h4> <p>email: {user.email}</p> <p>telefon: {user.phone}</p> </section> </> ) }
render() { const { response, isLoading } = this.state; return ( <div className={styles.bstyles}> <Card bg="light" style={{ width: "18rem" }}> <Card.Header>{response.name}</Card.Header> <Card.Body> <Card.Text> Address: {response.address} <br /> Freespace: {response.freespace} / {response.totalspace} <br /> </Card.Text> </Card.Body> <Card.Footer> <small className="text-muted">Updated {response.timestamp}</small> </Card.Footer> </Card> <Button size="sm" disabled={isLoading} onClick={!isLoading ? this.fetchOpenData : null} > {isLoading ? "Updating" : "REFRESH"} </Button> </div> ); }
const coreRuntime = new CoreRuntime({ uri: uri }); coreRuntime.setChannel(c2); const input = [DbUtils.toHexString(DB_PROVIDER[0].address), DbUtils.toHexString(DB_PROVIDER[2].address)]; const reqEnv = new Envelop( true, expect(resEnv.content().id).toBe(reqEnv.content().id); for (let i = 0; i < input.length; i++) { expect(resEnv.content().result.tips[i].address).toEqual(input[i]); expect(resEnv.content().result.tips[i].key).toBeTruthy(); expect(resEnv.content().result.tips[i].data).toBeTruthy();
</h4> <p>{address.firstanem} {address.lastname}</p> <p>{address.address}</p> <p>{address.zipCode} {address.city}</p> </section>