OpenBeta / open-tacos

Rock climbing route catalog (openbeta.io)
https://openbeta.io
GNU Affero General Public License v3.0
110 stars 111 forks source link

refactor summary sections #1119

Closed salgadopietrini closed 2 months ago

salgadopietrini commented 2 months ago

name: Pull request about: Create a pull request title: '' labels: '' assignees: ''


What type of PR is this?(check all applicable)

Description

Related Issues

Issue #1066

What this PR achieves

Currently, we have a common pattern where when we want to add a summary section (two columns), we create divs and add the classes that handle the grid layout. This PR encapsulates that logic into a single <Summary /> component, which accepts two children (one for each column), and also implements it in places where the old logic was implemented:

Screenshots, recordings

After refactor, should present no changes with current views:

Notes

vercel[bot] commented 2 months ago

@salgadopietrini is attempting to deploy a commit to the openbeta-dev Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
open-tacos ✅ Ready (Inspect) Visit Preview Apr 22, 2024 7:52pm
vnugent commented 2 months ago

@salgadopietrini thanks for the PR. I'll look into it this weekend.

vnugent commented 2 months ago

@allcontributors add @salgadopietrini for code

allcontributors[bot] commented 2 months ago

@vnugent

I've put up a pull request to add @salgadopietrini! :tada: