errors, setErrors] = useState({...defaultState, terms: "" });
  const [buttonDisabled, setButtonDisabled] = useState(true);

  let formSchema = yup.object().shape({
    name: yup.string().required("Please provide name."),
    password: yup.string().required("<PASSWORD>."),
  });

  useEffect(() => {
    formSchema.isValid(formState).then((valid) => setButtonDisabled(!valid));
  }, [formState]);

  // onSubmit function
  const formSubmit = (e) => {
    e.preventDefault();
    console.log("form submitted!", formState);
    axios
     .post("https://reqres.in/api/users", formState)
     .then(() => console.log("form submitted success"))
     .catch((err) => console.log(err));
  };

  //validate whether value meets schema
  const validateChange = (e) => {
    //this allows react to keep the event object to play nice with async op
    //reach allows us to check a specific value of the schema
    yup
     .reach(formSchema, e.target.name)
     .validate(e.target.value)
     .then((valid) =>
        setErrors({
         ...errors,
          [e.target.name]: "",
        })
      )
     .catch((error) =>
        setErrors({
         ...errors,
          [e.target.name]: error.errors[0],
        })
      );
    e.persist();
  };

  // onChange function
  const inputChange = (e) => {
    //   const value =
    //     e.target.type === "checkbox"? e.target.checked : e.target.value;
    setFormState({
     ...formState,
      [e.target.name]: e.target.value,
    });
    validateChange(e);
  };

  return (
    <form onSubmit={formSubmit}>
      {/* <Link to="/">
        <Button variant="contained">Back</Button>
      </Link> */}
      {/* <TextField label = "Name ">

      </TextField> */}

      <Grid
        container
        spacing={3}
        direction="column"
        justify="center"
        alignItems="center"
      >
        <Grid item xs={12}>
          <h1>Login</h1>
        </Grid>
        <Grid item xs={12}>
          <Input
            type="text"
            name="name"
            onChange={inputChange}
            value={formState.name}
            label="Name "
            errors={errors}
          />
        </Grid>
        <Grid item xs={12}>
          <Input
            type="password"
            name="password"
            onChange={inputChange}
            value={formState.password}
            label="Password "
            errors={errors}
          />
        </Grid>
      </Grid>
      <Grid
          container
          direction="row"
          justify="space-around"
          alignItems="flex-end"
          style = {{height: '10rem'}}
        >
          <Grid>
            <Button to="/" component={Link} variant="contained">
              Back
            </Button>
          </Grid>
          <Grid>
            <Button variant="contained" disabled={buttonDisabled}>
              Login
            </Button>
          </Grid>
        </Grid>
    </form>
  );
}
Right-wing activists, including Itamar Ben-Gvir and Baruch Marzel, disrupted a tour conducted in Hebron for high school students from the Hebrew University Secondary School, better known as Leyada, and subsequently the tour was cancelled. This followed the police decision to prevent representatives of “Breaking the Silence” from participating in the tour.
The Right wing activist, Itamar Ben-Gvir, was arrested tonight in the Cave of the Patriarchs (AKA Cave of Machpelah) in Hebron, after chasing two young Palestinians. Ben-Gvir claimed that they were carrying sticks.
Much has been said of late regarding the apparent growth in foreign ownership of Australian residential property being responsible for the surge in property prices. In this week’s article we take a look at the Australian property landscape, paying particular attention to the trends in foreign ownership.
Before beginning, it is important to look back at the policies that made residential property a more viable investment vehicle for foreign purchasers. In December 2008, the Australian federal government announced policy and administrative changes to screening arrangements for foreign investors in Australian real estate, making it easier for overseas purchasers to buy Australian property. The rationale was that increasing foreign investment would help support property prices.
With Australia’s economy appearing relatively strong on the global stage, foreign investors may see the real estate market as attractive. Given the level of media coverage on the topic, one may expect data to reveal an explosion in the proportion of foreign investment. The fact is, the Foreign Investment Review Board (FIRB) approved only 10,118 residential property purchases in 2011/2012. Around 8,000 of these approvals will proceed through to a purchase. This number represents approximately 2 per cent of the total properties purchased in Australia over 2011/2012.
Having said this, foreign buyers do account for a higher proportion of property purchases in some areas, particularly inner Sydney and Melbourne. This has, in effect, created a false economy in these areas by increasing demand, and therefore prices, above what Blue Wealth believes to be their equilibrium levels. The largest increase in foreign ownership has occurred in New South Wales. In the three months to 30 September, 16 per cent of new property was bought by foreign owners (eight times the national average), up from 11 per cent in the previous quarter.
Overall, as long as our population continues to expand, incomes continue to grow, the supply of new property remains low and interest rates remain affordable, property prices will probably continue to grow regardless of the level of foreign intervention. The statistics highlighted in this article reveal that the robust performance of the Australian property market is driven by strong fundamentals rather than the relatively small proportion of foreign investment.
Adelaide Developers Go ‘All In’ on Hou...
If you are trying, or have tried, to negotiate a car accident settlement with an insurance company claims adjuster, then you know how frustrating the process can be. Insurance adjusters are highly skilled negotiators who handle car accident settlements on a daily basis. An adjuster’s main goal is to settle claims quickly and for the lowest monetary value possible. In order to accomplish this, the adjuster would prefer that you remain in the dark about certain fundamentals and tactics of negotiations.
It sounds simple, but many unrepresented claimants fall for this very tactic, used often by insurance adjusters. Adjusters usually approach you in the friendliest manner when attempting to negotiate your claim. Some even try to “chat” you up to build a rapport that will make negotiations easier for the adjuster and the company he or she represents. The adjuster may ask you about your family or other personal issues that are unrelated to the claim. Adjusters do this to get you to believe they are on your side, hoping you will let your guard down when you are negotiating the settlement of your claim. The insurance adjuster will not tell you that his only interest is negotiating your claim for the lowest dollar amount, even if that means you are not made whole after the settlement.
One morning on your drive to work, you are rear-ended by another driver. (In most cases like this, the driver who rear-ended the other vehicle is automatically assigned fault, and as such is responsible for all damages.) This collision caused total damage to your vehicle, and you sustained severe injuries causing you to miss months of work. You have incurred medical bills that range from $40,000 to $50,000. When it is time to negotiate your settlement, the adjuster only offers you $8,000. He refuses to explain why the offer is so low, and refuses to budge on this amount, even when provided with medical bills, a police report, and other objective evidence of liability and damages. This conduct may constitute bad faith. Other examples of bad faith might include witness tampering or withholding information from you or lying to you. Both the insurance adjuster and the insurance company can be held legally responsible for acting in bad faith.
Whether the adjuster is acting in bad faith or just playing hardball can sometimes be difficult to determine. Our experienced car accident lawyers can help you evaluate the adjuster’s tactics and determine whether you are dealing with bad faith or just a legitimate difference of opinion.
Most state laws provide that you must be notified when a conversation is being recorded, so the adjuster likely will tell you when this is happening. However, the adjuster likely will not tell you that he is heavily documenting each and every conversation you have regarding settlement of your claim. The adjuster is creating a file for the insurance company’s records, but also memorializing information that can be used against you in the future. Claims adjusters are looking for any loophole in your statements as regards the events of your car accident and injuries, or any changes in your story. If they find inconsistencies in your statements of events, claims adjusters will attempt to use this information in future