mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 01:51:37 -04:00
Fix
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import {ImageResponse} from '@vercel/og'
|
||||
import {ImageResponseOptions} from '@vercel/og/dist/types'
|
||||
import {ogProps} from 'common/profiles/og-image'
|
||||
import {capitalize} from 'lodash'
|
||||
import {NextRequest} from 'next/server'
|
||||
import {classToTw} from 'web/components/og/utils'
|
||||
|
||||
@@ -16,10 +15,10 @@ export const getCardOptions = async () => ({
|
||||
})
|
||||
|
||||
// Edge-safe capitalize
|
||||
// function capitalize(str: string) {
|
||||
// if (!str) return ''
|
||||
// return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()
|
||||
// }
|
||||
function capitalize(str: string) {
|
||||
if (!str) return ''
|
||||
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase()
|
||||
}
|
||||
|
||||
function OgProfile(props: ogProps) {
|
||||
const {avatarUrl, name, city, country, age, interests, keywords} = props
|
||||
|
||||
Reference in New Issue
Block a user