Fix example for import
Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
e87c4a16a8
commit
d8bad3d7b4
File diff suppressed because one or more lines are too long
@ -15,7 +15,6 @@ export function CrateWarnings({crate_index}) {
|
|||||||
|
|
||||||
// #!render_count
|
// #!render_count
|
||||||
console.log("CrateWarnings renders: ", renderCount)
|
console.log("CrateWarnings renders: ", renderCount)
|
||||||
// TODO UI/colors
|
|
||||||
return (
|
return (
|
||||||
<div className="crate-info">
|
<div className="crate-info">
|
||||||
{crate_warnings.map((rule, index) => (
|
{crate_warnings.map((rule, index) => (
|
||||||
|
@ -6,29 +6,35 @@ import {Validation} from "./validate";
|
|||||||
// #!render_count
|
// #!render_count
|
||||||
import {useRenderCount} from "@uidotdev/usehooks";
|
import {useRenderCount} from "@uidotdev/usehooks";
|
||||||
|
|
||||||
const JSONExample = JSON.stringify([
|
const JSONExample = JSON.stringify({
|
||||||
{
|
"crates": [
|
||||||
"items": [
|
{
|
||||||
{
|
"items": [
|
||||||
"pn": "1124",
|
{
|
||||||
"options": null
|
"pn": "1124",
|
||||||
},
|
"options": null
|
||||||
{
|
},
|
||||||
"pn": "2118",
|
{
|
||||||
"options": null
|
"pn": "2128",
|
||||||
},
|
"options": null
|
||||||
{
|
},
|
||||||
"pn": "2118",
|
{
|
||||||
"options": null
|
"pn": "2128",
|
||||||
},
|
"options": null
|
||||||
{
|
},
|
||||||
"pn": "2128",
|
{
|
||||||
"options": null
|
"pn": "2128",
|
||||||
}
|
"options": null
|
||||||
],
|
}
|
||||||
"type": "rack"
|
],
|
||||||
}
|
"type": "rack"
|
||||||
]);
|
},
|
||||||
|
{
|
||||||
|
"items": [],
|
||||||
|
"type": "no_crate"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
export function ImportJSON() {
|
export function ImportJSON() {
|
||||||
// #!render_count
|
// #!render_count
|
||||||
|
Loading…
Reference in New Issue
Block a user