7f11792111
* Custom invite code and note * disable autocomplete and hide invite code under advanced * show invite description only to the owner * note->description and move unser advanced * Update lib/validate.js Co-authored-by: ekzyis <ek@stacker.news> * Update lib/webPush.js Co-authored-by: ekzyis <ek@stacker.news> * Update api/typeDefs/invite.js Co-authored-by: ekzyis <ek@stacker.news> * Update pages/invites/index.js Co-authored-by: ekzyis <ek@stacker.news> * Update pages/invites/index.js Co-authored-by: ekzyis <ek@stacker.news> * fix * apply review suggestions * change limits * Update lib/validate.js Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * don't show invite id in push notification * remove invoice metadata from push notifications * fix form reset, jsx/dom attrs, accidental uncontrolled prop warnings * support underscores as we claim * increase default gift to fit inflation --------- Co-authored-by: ekzyis <ek@stacker.news> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> Co-authored-by: k00b <k00b@stacker.news>
25 lines
350 B
JavaScript
25 lines
350 B
JavaScript
import { gql } from '@apollo/client'
|
|
import { STREAK_FIELDS } from './users'
|
|
|
|
export const INVITE_FIELDS = gql`
|
|
${STREAK_FIELDS}
|
|
fragment InviteFields on Invite {
|
|
id
|
|
createdAt
|
|
invitees {
|
|
id
|
|
name
|
|
}
|
|
gift
|
|
limit
|
|
revoked
|
|
user {
|
|
id
|
|
name
|
|
...StreakFields
|
|
}
|
|
poor
|
|
description
|
|
}
|
|
`
|