Skip to content

Commit

Permalink
Merge pull request #37 from khanghy2130/minor-changes
Browse files Browse the repository at this point in the history
fix giving wrong stripe url
  • Loading branch information
khanghy2130 authored Oct 19, 2024
2 parents fd04fae + da70ba9 commit 2bd60b9
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Link } from "@remix-run/react";
export default function Footer() {
return (
<div className="z-10 flex w-full flex-grow items-end pt-10">
<div className="flex w-full flex-col items-stretch bg-black px-4 py-3 text-center text-sm text-gray-200 sm:px-20 sm:text-lg">
<div className="flex w-full flex-col items-center bg-black px-4 py-3 text-center text-sm text-gray-200 sm:px-20 sm:text-lg">
<h2>&copy; {new Date().getFullYear()} TOYSHOP</h2>
<h2 className="px-2">
<span className="font-bold">Disclaimer:</span> This is a
Expand Down
1 change: 0 additions & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
Scripts,
useLoaderData,
useLocation,
useNavigation,
useRevalidator,
} from "@remix-run/react";
import { useState, useEffect } from "react";
Expand Down
2 changes: 1 addition & 1 deletion app/routes/pay._index/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import SpinnerSVG from "~/components/SpinnerSVG";
export const loader: LoaderFunction = async () => {
const data: { env: { [key: string]: string } } = {
env: {
STRIPE_RETURN_URL: process.env.STRIPE_RETURN_URL!,
SITE_URL: process.env.SITE_URL!,
},
};
return json(data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function OtherProductCard({ product }: Props) {
<div className="flex w-1/2 p-1 sm:p-2 md:w-1/4">
<Link
to={`/product/${product.id}`}
className="flex h-full w-full flex-col overflow-hidden rounded-lg bg-bgColor2 shadow-md sm:rounded-xl"
className="click-shrink flex h-full w-full flex-col overflow-hidden rounded-lg bg-bgColor2 shadow-md hover:bg-bgColor3 sm:rounded-xl"
onClick={() => {
window.scrollTo({ top: 0, behavior: "smooth" });
}}
Expand Down
4 changes: 1 addition & 3 deletions app/routes/profile/orders/MyOrders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ export default function MyOrders({ ordersData }: Props) {
</h1>
<div className="flex max-h-96 flex-col overflow-auto text-lg sm:text-xl">
{orders.length === 0 ? (
<p className="w-full text-center text-lg">
No orders found.
</p>
<p className="w-full text-lg">No orders found.</p>
) : null}
{orders.map((order) => (
<button
Expand Down
4 changes: 1 addition & 3 deletions app/routes/profile/reviews/MyReviews.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ export default function MyReviews() {
</h1>
<div className="flex flex-col">
{reviews.length === 0 && (
<p className="w-full text-center text-lg">
No reviews found.
</p>
<p className="w-full text-lg">No reviews found.</p>
)}
<div className="flex w-full flex-col">
{reviews.map((r) => (
Expand Down
2 changes: 1 addition & 1 deletion app/routes/profile/wishlist/MyWishlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function MyWishlist({ newWishlist, orderedProducts }: Props) {
</h1>

{products.length === 0 ? (
<p className="w-full text-center text-lg">Wishlist is empty.</p>
<p className="w-full text-lg">Wishlist is empty.</p>
) : (
<div className="flex flex-wrap">
{products.map((product) => (
Expand Down

0 comments on commit 2bd60b9

Please sign in to comment.