-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Refactor - Added Abstraction of Common Object Field (#1092)
* Added abstraction of benefits field * Schema changes * Removed abstraction of booking, as there are differences * Undid abstractions for benefits, made only common fields
- Loading branch information
1 parent
f81f010
commit 94d88bf
Showing
4 changed files
with
38 additions
and
63 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { TinaField } from "tinacms"; | ||
|
||
export const benefitsFields: TinaField[] = [ | ||
{ | ||
type: "image", | ||
label: "Image URL", | ||
name: "image", | ||
// @ts-ignore | ||
uploadDir: () => "/benefits", | ||
}, | ||
{ | ||
type: "string", | ||
label: "Title", | ||
name: "title", | ||
}, | ||
{ | ||
type: "rich-text", | ||
label: "Description", | ||
name: "description", | ||
}, | ||
{ | ||
type: "string", | ||
required: false, | ||
label: "linkName", | ||
name: "linkName", | ||
}, | ||
{ | ||
type: "string", | ||
required: false, | ||
label: "linkURL", | ||
name: "linkURL", | ||
}, | ||
]; |