Spaces:
Configuration error
Configuration error
Download web/libs/editor/src/components/TreeValidation/TreeValidation.jsx from bisalsaha/lebel-studio: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/TreeValidation/TreeValidation.jsx
- Command line
-
hf download hf://spaces/bisalsaha/lebel-studio/web/libs/editor/src/components/TreeValidation/TreeValidation.jsx
-
curl -L -o TreeValidation.jsx https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/TreeValidation/TreeValidation.jsx
576 Bytes
| import { PropTypes } from "prop-types"; | |
| import { getEnv } from "mobx-state-tree"; | |
| import { inject, observer } from "mobx-react"; | |
| import { ErrorMessage } from "../ErrorMessage/ErrorMessage"; | |
| export const TreeValidation = inject("store")( | |
| observer(({ store, errors }) => { | |
| return ( | |
| <div className="lsf-errors"> | |
| {errors.map((error, index) => ( | |
| <ErrorMessage key={`error-${index}`} error={getEnv(store).messages[error.error](error)} /> | |
| ))} | |
| </div> | |
| ); | |
| }), | |
| ); | |
| TreeValidation.propTypes = { | |
| errors: PropTypes.array.isRequired, | |
| }; | |