Updated the website

This commit is contained in:
2023-08-29 22:49:51 +02:00
parent 2be7f9b705
commit 3f3387b1d1
33 changed files with 297 additions and 165 deletions

View File

@@ -2,6 +2,8 @@ import * as React from "react";
import { ColorPickerInput } from "../../tina/fields/color";
import { IconPickerInput } from "../../tina/fields/icon";
import * as BoxIcons from "react-icons/bi";
import {Template} from "tinacms";
import {ObjectField} from "@tinacms/schema-tools/dist/types";
export const IconOptions = {
Tina: (props) => (
@@ -117,7 +119,7 @@ export const Icon = ({
}
};
export const iconSchema = {
export const iconSchema: ObjectField = {
type: "object",
label: "Icon",
name: "icon",
@@ -127,7 +129,7 @@ export const iconSchema = {
label: "Icon",
name: "name",
ui: {
component: IconPickerInput,
component: (props) => IconPickerInput(props),
},
},
{
@@ -135,7 +137,7 @@ export const iconSchema = {
label: "Color",
name: "color",
ui: {
component: ColorPickerInput,
component: () => ColorPickerInput,
},
},
{