Skip to content

Commit

Permalink
fix: remove unused pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rehanadi committed Jul 11, 2024
1 parent 6fd8e8c commit 79e8110
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 20 deletions.
1 change: 1 addition & 0 deletions apps/api/src/queries/auth.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import path from 'path';
import fs from 'fs';
import { sign } from 'jsonwebtoken';
import { API_KEY } from '@/config';
import crypto from 'crypto';

const prisma = new PrismaClient();

Expand Down
Empty file removed apps/web/src/app/(auth)/layout.tsx
Empty file.
7 changes: 0 additions & 7 deletions apps/web/src/app/(auth)/sign-in/page.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions apps/web/src/app/(auth)/sign-up/page.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import React from 'react';
import LoginView from '@/components/signIn/SignIn';
import { authErrorMessages } from "@/config/auth";

type Props = { searchParams: { callbackUrl?: string, error?: string } };
// type Props = { searchParams: { callbackUrl?: string, error?: string } };

const Page = ({ searchParams }: Props) => {
const Page = () => {
const searchParams = { callbackUrl: '/', error: null };
const { callbackUrl = '/', error } = searchParams;
const authError = error ? authErrorMessages[error] || authErrorMessages.default : null

Expand Down
8 changes: 4 additions & 4 deletions apps/web/src/components/checkout/PaymentMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ interface IPaymentMethod {
}

const ewallets: IPaymentMethod[] = [
{
value: 'GOPAY',
image: 'https://shop.rehan.id/assets/images/payment-methods/gopay.png',
},
// {
// value: 'GOPAY',
// image: 'https://shop.rehan.id/assets/images/payment-methods/gopay.png',
// },
{
value: 'OVO',
image: 'https://shop.rehan.id/assets/images/payment-methods/ovo.png',
Expand Down

0 comments on commit 79e8110

Please sign in to comment.