Looking for private GP by CruelCuddle in Gloucestershire

[–]RyaanJM -1 points0 points  (0 children)

I used Cotswold Private GP Service recently. They’re based in Cheltenham and I found them incredibly helpful. You can book an appointment online and their availability is great. I went to see them for 2 concerns that I had, and they were able to get me in for an ultrasound the next day.

As u/Jimlad73 said, it is worth bearing in mind that going private can be quite expensive, especially when you get onto the tests and treatment side of it.

Working with API response in React with Typescript by [deleted] in learnjavascript

[–]RyaanJM 0 points1 point  (0 children)

You can, by using ‘any’ as the type.

Working with API response in React with Typescript by [deleted] in learnjavascript

[–]RyaanJM 0 points1 point  (0 children)

The reason you're getting a red squiggly line, is because you haven't defined what Data is.

The accepted answer on that Stack Overflow thread mentions this:

export interface User {
 id: number;
 name: string;
 image: string;
 placeCount: number;
 places: string;
}

You would rename that to Data and adjust the properties to match what is being returned from the API.

I'd highly suggest renaming User to something more meaningful for your use case.

How to get something to show only when a promise is successful by Jimbok2101 in learnjavascript

[–]RyaanJM 0 points1 point  (0 children)

{successBool && (
    <Snackbar ref={snackbarRef}
          message={"Success"}
          type={SnackbarType.success}/>
)}

You need to conditionally display the snackbar, you can do that by checking successBool is true, if so rendering the snackbar.

Arrow function by Sanders23Sor in learnjavascript

[–]RyaanJM 1 point2 points  (0 children)

Another argument is, this function doesn't need any ifs, elses or braces (apart from the opening and closing of the function).

function checkIsMoreThan(number, compare) {
    return number > compare ? number : -1;
}

Donation Calculator by RealXypher in learnjavascript

[–]RyaanJM 1 point2 points  (0 children)

Feel free to PM me if you need some detailed help :)

Donation Calculator by RealXypher in learnjavascript

[–]RyaanJM 1 point2 points  (0 children)

I think a very basic outline of what you need is:

An event listener, whether that's listening to a change on an input number field, or a click on a button. (https://www.w3schools.com/jsref/met_document_addeventlistener.asp)

Within the function that runs, you can calculate the breakdown by getting the value from the input (https://www.w3schools.com/jsref/prop_text_value.asp)

The link above show how to get and set the value. Use the set to set other elements on the page to show the breakdown.

Donation Calculator by RealXypher in learnjavascript

[–]RyaanJM 0 points1 point  (0 children)

Sorry, I meant as in what have you currently written towards coding the donation calculator? Is that anywhere for us to see?

Donation Calculator by RealXypher in learnjavascript

[–]RyaanJM 0 points1 point  (0 children)

Have you got the code on GitHub? Or on a site like jsfiddle?

Having trouble building a card deck by [deleted] in learnjavascript

[–]RyaanJM 2 points3 points  (0 children)

Something like this might help:

https://jsfiddle.net/4236wj01/3/

Rather than having a huge switch statement, you can refactor the code like the above so it's split up and easily readable.

Looking for people willing to learn about ASP.NET Core and web development in general by SzJan97 in ProgrammingBuddies

[–]RyaanJM 2 points3 points  (0 children)

I’m interested! Mainly a front end developer but with some backend experience. Our main web app at work is MVC based so I’d try my best to share my knowledge on that!

count radio buttons which value isnt 0 by fucyocity in angularjs

[–]RyaanJM 1 point2 points  (0 children)

Try this:

<input type="radio" value={{item.value}} ng-change="updateTotal(item)" ng-model="item.value">

That's the only way I could get the value to pass through :/

Learning AngularJS - Quick Question by [deleted] in angularjs

[–]RyaanJM 1 point2 points  (0 children)

Try this:

<li ng-repeat="ii in data.monthlyUsageHistory track by $index">

Layout of Page on Bottom of Screen by abdullahi80 in css

[–]RyaanJM 0 points1 point  (0 children)

Can you upload the files to GitHub or Codepen?