File Editor
Directories:
.. (Back)
__tests__
container
container-content
container-header
dashboard
Files:
container.js
index.js
template.js
Create New File
Create
Edit File: index.js
/** * External dependencies */ import React from 'react'; /** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; const { InnerBlocks } = wp.blockEditor; /** * Internal dependencies */ import { Tickets as TicketsIcon } from '@moderntribe/tickets/icons'; import Ticket from './container'; export default { id: 'tickets-item', title: __( 'Event Ticket', 'event-tickets' ), description: __( 'A single configured ticket type.', 'event-tickets' ), icon: <TicketsIcon />, category: 'tribe-tickets', keywords: [ 'event', 'event-tickets', 'tribe' ], parent: [ 'tribe/tickets' ], supports: { html: false, customClassName: false, }, attributes: { hasBeenCreated: { type: 'boolean', default: false, }, ticketId: { type: 'integer', default: 0, }, }, edit: Ticket, save: () => <div><InnerBlocks.Content /></div>, };
Save Changes
Rename File
Rename