Linted the whole project with eslint
This commit was merged in pull request #3.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import * as React from "react";
|
||||
import { Section } from "../util/section";
|
||||
import {PageBlocksCarousel} from "../../tina/__generated__/types";
|
||||
import {Anchoring, anchoringSchema} from "../util/anchoring";
|
||||
import {Template} from "tinacms";
|
||||
import { PageBlocksCarousel } from "../../tina/__generated__/types";
|
||||
import { Anchoring, anchoringSchema } from "../util/anchoring";
|
||||
import { Template } from "tinacms";
|
||||
|
||||
export const Carousel = ({ data }: { data: PageBlocksCarousel }) => {
|
||||
return (
|
||||
@@ -20,17 +20,17 @@ export const carouselBlockSchema: Template = {
|
||||
label: "Carousel",
|
||||
ui: {
|
||||
previewSrc: "/blocks/features.png",
|
||||
defaultItem: [defaultCarousel, defaultCarousel, defaultCarousel],
|
||||
defaultItem: [defaultCarousel, defaultCarousel, defaultCarousel]
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
type: "image",
|
||||
label: "Images du carousel",
|
||||
name: "images",
|
||||
list: true,
|
||||
list: true
|
||||
},
|
||||
{
|
||||
...anchoringSchema
|
||||
}
|
||||
],
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user