chore: remove explicit email and phone inline blocks in favor of automatic obfuscation
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 14s
Build & Deploy / 🧪 QA (push) Successful in 3m46s
Build & Deploy / 🏗️ Build (push) Successful in 3m58s
Build & Deploy / 🚀 Deploy (push) Successful in 15s
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled

This commit is contained in:
2026-03-02 12:39:07 +01:00
parent 1e0886144f
commit 4faed38f47
6 changed files with 59 additions and 117 deletions

View File

@@ -1,25 +0,0 @@
import { Block } from 'payload';
export const Email: Block = {
slug: 'email',
interfaceName: 'EmailBlock',
labels: {
singular: 'Email (Inline)',
plural: 'Emails (Inline)',
},
fields: [
{
name: 'email',
type: 'text',
required: true,
},
{
name: 'label',
type: 'text',
required: false,
admin: {
placeholder: 'Optional: Custom link text',
},
},
],
};

View File

@@ -1,28 +0,0 @@
import { Block } from 'payload';
export const Phone: Block = {
slug: 'phone',
interfaceName: 'PhoneBlock',
labels: {
singular: 'Phone (Inline)',
plural: 'Phones (Inline)',
},
fields: [
{
name: 'phone',
type: 'text',
required: true,
admin: {
placeholder: '+49 123 456 789',
},
},
{
name: 'label',
type: 'text',
required: false,
admin: {
placeholder: 'Optional: Custom link text',
},
},
],
};

View File

@@ -1,6 +1,4 @@
import { AnimatedImage } from './AnimatedImage';
import { Email } from './Email';
import { Phone } from './Phone';
import { Callout } from './Callout';
import { CategoryGrid } from './CategoryGrid';
import { ChatBubble } from './ChatBubble';
@@ -23,8 +21,6 @@ import { homeBlocksArray } from './HomeBlocks';
export const payloadBlocks = [
...homeBlocksArray,
AnimatedImage,
Email,
Phone,
Callout,
CategoryGrid,
ChatBubble,