Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Clear cards
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Jun 22, 2022
1 parent 18b1ddf commit 581fbc5
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions src/components/manage/Blocks/ImageCards/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,6 @@ const Cards = (props) => {

const makeTextBody = (item) => (
<>
{/* <Card.Content>
<Card.Header>{item.title ? item.title : item.id}</Card.Header>
{item.meta && <Card.Meta>{serializeNodes(item.meta)}</Card.Meta>}
{item.text && (
<Card.Description>{serializeNodes(item.text)}</Card.Description>
)}
</Card.Content>
{item.link && (
<Card.Content extra>
<UniversalLink href={item.link}>
<Icon name="linkify" />
{item.linkTitle || item.link}
</UniversalLink>
</Card.Content>
)} */}
<h3 className="tile-listing-title">
{item.title ? item.title : item.id}
</h3>
Expand Down Expand Up @@ -109,15 +94,7 @@ Cards.schema = () => ({
{
id: 'default',
title: 'Default',
fields: [
'title',
'meta',
'text',
'attachedimage',
'link',
'linkTitle',
'copyright',
],
fields: ['title', 'text', 'attachedimage', 'link'],
},
],

Expand All @@ -126,10 +103,6 @@ Cards.schema = () => ({
type: 'string',
title: 'Title',
},
meta: {
widget: 'slate_richtext',
title: 'Meta data',
},
text: {
widget: 'slate_richtext',
title: 'Text',
Expand All @@ -138,18 +111,10 @@ Cards.schema = () => ({
widget: 'url',
title: 'Link',
},
linkTitle: {
type: 'string',
title: 'Link title',
},
attachedimage: {
widget: 'attachedimage',
title: 'Image',
},
copyright: {
widget: 'slate_richtext',
title: 'Copyright',
},
},

required: ['attachedimage'],
Expand Down

0 comments on commit 581fbc5

Please sign in to comment.