Skip to content

Commit

Permalink
Merge pull request #188 from poap-xyz/release/v1.11.2
Browse files Browse the repository at this point in the history
Release v1.11.2
  • Loading branch information
jm42 authored Apr 17, 2024
2 parents 7005c4f + 3eaceb2 commit af7af39
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions netlify/edge-functions/images.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,28 @@ export default async function handler(request, context) {
.sort((a, b) => a.sort - b.sort)
.map(({ event }) => event)

if (events.length === 1) {
return new ImageResponse(
(
<img
src={`${events[0].image_url}?format=png&size=large`}
alt={events[0].name}
width={512}
height={512}
style={{
width: '512px',
height: '512px',
borderRadius: '50%',
}}
/>
),
{
width: 512,
height: 512,
}
)
}

let images = []
if (events.length < 6) {
images = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/poap-family",
"version": "1.11.1",
"version": "1.11.2",
"author": {
"name": "POAP",
"url": "https://poap.xyz"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function Search() {
className="query"
type="search"
name="query"
placeholder="Search POAP drops"
placeholder="Search POAPs"
onChange={onQueryChange}
onKeyUp={onQueryKeyUp}
autoComplete="off"
Expand Down

0 comments on commit af7af39

Please sign in to comment.