chore: fix errrors in examples, remove unneeded CI steps (#457)

This commit is contained in:
Corbin Crutchley
2023-09-09 00:04:42 -07:00
committed by GitHub
parent 826c58d5c2
commit 707ff5d603
4 changed files with 51 additions and 99 deletions

View File

@@ -1,13 +1,13 @@
import React from "react";
import ReactDOM from "react-dom/client";
import * as React from "react";
import { createRoot } from "react-dom/client";
import { useForm } from "@tanstack/react-form";
import type { FieldApi } from "@tanstack/react-form";
function FieldInfo({ field }: { field: FieldApi<any, any> }) {
return (
<>
{field.state.meta.touchedError ? (
<em>{field.state.meta.touchedError}</em>
{field.state.meta.touchedErrors ? (
<em>{field.state.meta.touchedErrors}</em>
) : null}
{field.state.meta.isValidating ? "Validating..." : null}
</>
@@ -107,4 +107,4 @@ export default function App() {
const rootElement = document.getElementById("root")!;
ReactDOM.createRoot(rootElement).render(<App />);
createRoot(rootElement).render(<App />);

View File

@@ -7,8 +7,6 @@ const props = defineProps<{
</script>
<template>
<em v-if="props.state.meta.touchedError">{{
props.state.meta.touchedError
}}</em>
<em v-for="error of props.state.meta.touchedErrors">{{ error }}</em>
{{ props.state.meta.isValidating ? 'Validating...' : null }}
</template>