Skip to content

Commit

Permalink
Merge pull request #463 from tgaeta/chore/update-twitter-to-x
Browse files Browse the repository at this point in the history
Update References from Twitter to X
  • Loading branch information
joepuzzo authored Apr 11, 2024
2 parents bb5e593 + 0f3cd6e commit a70424a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vitedocs/Pages/Examples/ElonMusk/Example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const Example = () => (
{/* ------------- Formated inputs -------------- */}
<Input name="worth" label="Worth" formatter={formatter} parser={parser} />
{/* ------------- Relevance & Scoping ---------- */}
<Scope scope="twitter">
<Checkbox name="love" label="Do you love Twitter?" />
<Relevant when={({ formState }) => formState.values.twitter?.love}>
<Scope scope="x">
<Checkbox name="love" label="Do you love X?" />
<Relevant when={({ formState }) => formState.values.x?.love}>
<Input name="howMuch" label="How Much?" defaultValue="A LOT!" />
</Relevant>
</Scope>
Expand Down

0 comments on commit a70424a

Please sign in to comment.