Skip to content

Commit

Permalink
Merge pull request #10 from fabriciopgl/feature/1
Browse files Browse the repository at this point in the history
🚧 Ajusta rota
  • Loading branch information
fabriciopgl authored Nov 26, 2024
2 parents 7682d87 + 087fcf1 commit 59891f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
NEXT_PUBLIC_PLACE_DETAILS_BASE_PATH=/detalhes
NEXT_PUBLIC_GOOGLE_CLIENT_ID=xxxx
NEXT_PUBLIC_GOOGLE_USER_SCRIPT_URL=xxxx
NEXT_PUBLIC_GOOGLE_PLACES_SCRIPT_URL=xxxx
Expand Down
4 changes: 1 addition & 3 deletions components/PlaceCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ export default function PlaceCard({
<div className="flex flex-row justify-between items-center gap-2">
<Button
onClick={() => {
router.push(
`${process.env.NEXT_PUBLIC_PLACE_DETAILS_BASE_PATH}?placeId=${id}`
);
router.push(`/detalhes?placeId=${id}`);
}}
className="mt-auto bg-green-800 text-white font-semibold py-2 rounded-lg transition-colors duration-300 hover:bg-green-700 w-full"
>
Expand Down

0 comments on commit 59891f3

Please sign in to comment.