Gift Cards Admin Table (tables/gift-cards.tsx)

spree · packages/dashboard/src/tables/gift-cards.tsx · typescript · BSD-3-Clause
ui, pos, payments, lang:typescript

Defines a dashboard table and filters for managing store gift cards. Reuse when building e-commerce admin panels with Spree.

// Source: https://github.com/spree/spree | License: BSD-3-Clause | Copyright 2024-present, Vendo Sp. z o.o., Vendo Connect Inc
// Provided via justclaw.it.com; keep this notice with the code.
import type { GiftCard } from '@spree/admin-sdk'
import { GIFT_CARD_STATUSES, subsetOf } from '@spree/core'
import { defineTable, Money } from '@spree/dashboard-core'
import { Badge, RelativeTime, ResourceNameCell, StatusBadge } from '@spree/dashboard-ui'
import { GiftIcon } from '@spree/dashboard-ui/icons'
import i18n from 'i18next'
import { adminUserAutocompleteProps } from '../hooks/use-admin-users'
import { customerAutocompleteProps } from '../hooks/use-customers'
import { giftCardBatchAutocompleteProps } from '../hooks/use-gift-cards'
import { erasedFieldValue } from '../lib/erased-customer'
imp

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key