Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bradtraversy/prostore
/ functions
Functions
182 in github.com/bradtraversy/prostore
⨍
Functions
182
◇
Types & classes
7
Function
MainNav
({ className, ...props }: React.HTMLAttributes<HTMLElement>)
app/user/main-nav.tsx:18
Function
MainNav
({ className, ...props }: React.HTMLAttributes<HTMLElement>)
app/admin/main-nav.tsx:26
Function
MarkAsDeliveredButton
()
app/(root)/order/[id]/order-details-table.tsx:119
Function
MarkAsPaidButton
()
app/(root)/order/[id]/order-details-table.tsx:95
Function
Menu
()
components/shared/header/menu.tsx:14
Function
ModeToggle
()
components/shared/header/mode-toggle.tsx:15
Function
NotFoundPage
()
app/not-found.tsx:7
Function
OrderDetailsPage
(props: { params: Promise<{ id: string; }>; })
app/(root)/order/[id]/page.tsx:13
Function
OrderDetailsTable
({ order, paypalClientId, isAdmin, stripeClientSecret, }: { order: Omit<Order, 'paymentResult'>; p
app/(root)/order/[id]/order-details-table.tsx:32
Function
OrdersPage
(props: { searchParams: Promise<{ page: string }>; })
app/user/orders/page.tsx:19
Function
POST
(req: NextRequest)
app/api/webhooks/stripe/route.ts:5
Function
Pagination
({ page, totalPages, urlParamName }: PaginationProps)
components/shared/pagination.tsx:12
Function
PaymentMethodForm
({ preferredPaymentMethod, }: { preferredPaymentMethod: string | null; })
app/(root)/payment-method/payment-method-form.tsx:23
Function
PaymentMethodPage
()
app/(root)/payment-method/page.tsx:11
Function
PlaceOrderButton
()
app/(root)/place-order/place-order-form.tsx:22
Function
PlaceOrderForm
()
app/(root)/place-order/place-order-form.tsx:9
Function
PlaceOrderPage
()
app/(root)/place-order/page.tsx:27
Function
PrintLoadingState
()
app/(root)/order/[id]/order-details-table.tsx:60
Function
ProductCard
({ product }: { product: Product })
components/shared/product/product-card.tsx:8
Function
ProductCarousel
({ data }: { data: Product[] })
components/shared/product/product-carousel.tsx:15
Function
ProductDetailsPage
(props: { params: Promise<{ slug: string }>; })
app/(root)/product/[slug]/page.tsx:13
Function
ProductForm
({ type, product, productId, }: { type: 'Create' | 'Update'; product?: Product; productId?: string
components/admin/product-form.tsx:29
Function
ProductImages
({ images }: { images: string[] })
components/shared/product/product-images.tsx:6
Function
ProductList
({ data, title, limit, }: { data: Product[]; title?: string; limit?: number; })
components/shared/product/product-list.tsx:4
Function
ProductPrice
({ value, className, }: { value: number; className?: string; })
components/shared/product/product-price.tsx:3
Function
Profile
()
app/user/profile/page.tsx:10
Function
ProfileForm
()
app/user/profile/profile-form.tsx:19
Function
PurchaseReceiptEmail
({ order }: OrderInformationProps)
email/purchase-receipt.tsx:69
Function
Rating
({ value, caption }: { value: number; caption?: string })
components/shared/product/rating.tsx:1
Function
RemoveButton
({ item }: { item: CartItem })
app/(root)/cart/cart-table.tsx:55
Function
ReviewForm
({ userId, productId, onReviewSubmitted, }: { userId: string; productId: string; onReviewSubmitted
app/(root)/product/[slug]/review-form.tsx:42
Function
ReviewList
({ userId, productId, productSlug, }: { userId: string; productId: string; productSlug: string; })
app/(root)/product/[slug]/review-list.tsx:20
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/layout.tsx:19
Function
RootLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/(root)/layout.tsx:4
Function
Search
()
components/shared/header/search.tsx:13
Function
SearchPage
(props: { searchParams: Promise<{ q?: string; category?: string; price?: string; rating?: st
app/(root)/search/page.tsx:72
Function
SheetFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:91
Function
SheetHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
components/ui/sheet.tsx:77
Function
ShippingAddressForm
({ address }: { address: ShippingAddress })
app/(root)/shipping-address/shipping-address-form.tsx:25
Function
ShippingAddressPage
()
app/(root)/shipping-address/page.tsx:14
Function
SignInButton
()
app/(auth)/sign-in/credentials-signin-form.tsx:22
Function
SignInPage
(props: { searchParams: Promise<{ callbackUrl: string; }>; })
app/(auth)/sign-in/page.tsx:20
Function
SignUpButton
()
app/(auth)/sign-up/sign-up-form.tsx:22
Function
SignUpForm
()
app/(auth)/sign-up/sign-up-form.tsx:13
Function
SignUpPage
(props: { searchParams: Promise<{ callbackUrl: string; }>; })
app/(auth)/sign-up/page.tsx:20
Function
StatBox
({ label, value }: { label: string; value: number })
components/deal-countdown.tsx:125
Function
StripeForm
()
app/(root)/order/[id]/stripe-payment.tsx:31
Function
StripePayment
({ priceInCents, orderId, clientSecret, }: { priceInCents: number; orderId: string; clientSecret:
app/(root)/order/[id]/stripe-payment.tsx:15
Function
SuccessPage
(props: { params: Promise<{ id: string }>; searchParams: Promise<{ payment_intent: string }>; })
app/(root)/order/[id]/stripe-payment-success/page.tsx:9
Function
Toaster
()
components/ui/toaster.tsx:13
Function
UnauthorizedPage
()
app/unauthorized/page.tsx:9
Function
UpdateUserForm
({ user, }: { user: z.infer<typeof updateUserSchema>; })
app/admin/users/[id]/update-user-form.tsx:29
Function
UserButton
()
components/shared/header/user-button.tsx:14
Function
UserLayout
({ children, }: Readonly<{ children: React.ReactNode; }>)
app/user/layout.tsx:7
Function
ViewAllProductsButton
()
components/view-all-products-button.tsx:4
Function
authorize
(credentials)
auth.ts:25
Function
authorized
({ request, auth })
auth.config.ts:7
Function
compute
(product)
db/prisma.ts:21
Function
deleteOrder
(id: string)
lib/actions/order.actions.ts:387
Function
deleteProduct
(id: string)
lib/actions/product.actions.ts:117
Function
deleteUser
(id: string)
lib/actions/user.actions.ts:226
Function
generateMetadata
(props: { searchParams: Promise<{ q: string; category: string; price: string; rating: string
app/(root)/search/page.tsx:36
Function
handleAddToCart
()
components/shared/product/add-to-cart.tsx:17
Function
handleApprovePayPalOrder
(data: { orderID: string })
app/(root)/order/[id]/order-details-table.tsx:85
Function
handleCreatePayPalOrder
()
app/(root)/order/[id]/order-details-table.tsx:72
Function
handleDeleteClick
()
components/shared/delete-dialog.tsx:28
Function
handleOpenForm
()
app/(root)/product/[slug]/review-form.tsx:61
Function
handleRemoveFromCart
()
components/shared/product/add-to-cart.tsx:46
Function
handleSubmit
(event: React.FormEvent)
app/(root)/place-order/place-order-form.tsx:12
Function
handleSubmit
(e: FormEvent)
app/(root)/order/[id]/stripe-payment.tsx:39
Function
jwt
({ token, user, trigger, session })
auth.ts:72
Function
onSubmit
( values )
components/admin/product-form.tsx:50
Function
onSubmit
(values: z.infer<typeof updateProfileSchema>)
app/user/profile/profile-form.tsx:32
Function
onSubmit
(values: z.infer<typeof paymentMethodSchema>)
app/(root)/payment-method/payment-method-form.tsx:40
Function
onSubmit
( values )
app/(root)/product/[slug]/review-form.tsx:77
Function
onSubmit
( values )
app/(root)/shipping-address/shipping-address-form.tsx:36
Function
onSubmit
(values: z.infer<typeof updateUserSchema>)
app/admin/users/[id]/update-user-form.tsx:42
Function
reload
()
app/(root)/product/[slug]/review-list.tsx:41
Function
session
({ session, user, trigger, token })
auth.ts:59
Function
signInWithCredentials
( prevState: unknown, formData: FormData )
lib/actions/user.actions.ts:23
Function
signOutUser
()
lib/actions/user.actions.ts:45
Function
signUpUser
(prevState: unknown, formData: FormData)
lib/actions/user.actions.ts:58
← previous
101–182 of 182, ranked by callers