Release 2025-05-23-9Gto

This commit is contained in:
pluja
2025-05-23 12:09:33 +00:00
parent 61a5448ff5
commit 8deb9acb93
2 changed files with 7 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ export const {
{ {
type: 'whatsapp', type: 'whatsapp',
label: 'WhatsApp', label: 'WhatsApp',
matcher: /https?:\/\/(?:www\.)?wa\.me\/(.*)\/?/, matcher: /https?:\/\/(?:www\.)?wa\.me\/(.*)?/,
formatter: (value) => { formatter: (value) => {
return parsePhoneNumberWithError(value).formatInternational() return parsePhoneNumberWithError(value).formatInternational()
}, },
@@ -55,14 +55,14 @@ export const {
{ {
type: 'telegram', type: 'telegram',
label: 'Telegram', label: 'Telegram',
matcher: /https?:\/\/(?:www\.)?t\.me\/(.*)\/?/, matcher: /https?:\/\/(?:www\.)?t\.me\/(.*)?/,
formatter: (value) => `t.me/${value}`, formatter: (value) => `t.me/${value}`,
icon: 'ri:telegram-line', icon: 'ri:telegram-line',
}, },
{ {
type: 'linkedin', type: 'linkedin',
label: 'LinkedIn', label: 'LinkedIn',
matcher: /https?:\/\/(?:www\.)?linkedin\.com\/(?:in|company)\/(.*)\/?/, matcher: /https?:\/\/(?:www\.)?linkedin\.com\/(?:in|company)\/(.*)?/,
formatter: (value) => `in/${value}`, formatter: (value) => `in/${value}`,
icon: 'ri:linkedin-box-line', icon: 'ri:linkedin-box-line',
}, },
@@ -76,21 +76,21 @@ export const {
{ {
type: 'x', type: 'x',
label: 'X', label: 'X',
matcher: /https?:\/\/(?:www\.)?x\.com\/(.*)\/?/, matcher: /https?:\/\/(?:www\.)?x\.com\/(.*)?/,
formatter: (value) => `@${value}`, formatter: (value) => `@${value}`,
icon: 'ri:twitter-x-line', icon: 'ri:twitter-x-line',
}, },
{ {
type: 'instagram', type: 'instagram',
label: 'Instagram', label: 'Instagram',
matcher: /https?:\/\/(?:www\.)?instagram\.com\/(.*)\/?/, matcher: /https?:\/\/(?:www\.)?instagram\.com\/(.*)?/,
formatter: (value) => `@${value}`, formatter: (value) => `@${value}`,
icon: 'ri:instagram-line', icon: 'ri:instagram-line',
}, },
{ {
type: 'matrix', type: 'matrix',
label: 'Matrix', label: 'Matrix',
matcher: /https?:\/\/(?:www\.)?matrix\.to\/#\/(.*)\/?/, matcher: /https?:\/\/(?:www\.)?matrix\.to\/#\/(.*)?/,
formatter: (value) => value, formatter: (value) => value,
icon: 'ri:hashtag', icon: 'ri:hashtag',
}, },

View File

@@ -405,8 +405,7 @@ const errorTextClasses = 'mt-1 text-xs text-red-400'
}))} }))}
selectedValue={service.serviceVisibility} selectedValue={service.serviceVisibility}
error={serviceInputErrors.serviceVisibility} error={serviceInputErrors.serviceVisibility}
cardSize="md" cardSize="sm"
iconSize="md"
/> />
</div> </div>