Skip to content

Commit

Permalink
chore: make the invite link visible
Browse files Browse the repository at this point in the history
This prevents the copy to clipboard to fail without allowing user to copy the link manually
  • Loading branch information
ansmonjol committed Dec 20, 2022
1 parent ff142ec commit 1a46f89
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/settings/members/CreateInviteDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ export const CreateInviteDialog = forwardRef<DialogRef>((_, ref) => {
<Label variant="caption" color="grey600">
{translate('text_63208c701ce25db781407475')}
</Label>
<Typography variant="body" color="grey700" noWrap>
<InvitationURL variant="body" color="grey700">
{invitationUrl}
</Typography>
</InvitationURL>
</Line>
</>
)}
Expand All @@ -185,12 +185,16 @@ const Content = styled.div`

const Line = styled.div`
display: flex;
align-items: center;
align-items: baseline;
`

const Label = styled(Typography)`
width: 140px;
flex-shrink: 0;
`

const InvitationURL = styled(Typography)`
line-break: anywhere;
`

CreateInviteDialog.displayName = 'CreateInviteDialog'
37 changes: 37 additions & 0 deletions src/generated/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,7 @@ export type Invoice = {
plan?: Maybe<Plan>;
refundableAmountCents: Scalars['Int'];
sequentialId: Scalars['ID'];
status: InvoiceStatusTypeEnum;
subTotalVatExcludedAmountCents: Scalars['Int'];
subTotalVatIncludedAmountCents: Scalars['Int'];
subscriptions?: Maybe<Array<Subscription>>;
Expand All @@ -1691,6 +1692,12 @@ export type Invoice = {
walletTransactionAmountCents: Scalars['Int'];
};

export type InvoiceCollection = {
__typename?: 'InvoiceCollection';
collection: Array<Invoice>;
metadata: CollectionMetadata;
};

/** Invoice Item */
export type InvoiceItem = {
amountCents: Scalars['BigInt'];
Expand All @@ -1708,6 +1715,11 @@ export enum InvoicePaymentStatusTypeEnum {
Succeeded = 'succeeded'
}

export enum InvoiceStatusTypeEnum {
Draft = 'draft',
Finalized = 'finalized'
}

export type InvoiceSubscription = {
__typename?: 'InvoiceSubscription';
chargeAmountCents: Scalars['Int'];
Expand Down Expand Up @@ -1861,6 +1873,8 @@ export type Mutation = {
updateCreditNote?: Maybe<CreditNote>;
/** Updates an existing Customer */
updateCustomer?: Maybe<Customer>;
/** Assign the invoice grace period to Customers */
updateCustomerInvoiceGracePeriod?: Maybe<CustomerDetails>;
/** Assign the vat rate to Customers */
updateCustomerVatRate?: Maybe<CustomerDetails>;
/** Updates a new Customer Wallet */
Expand Down Expand Up @@ -2056,6 +2070,11 @@ export type MutationUpdateCustomerArgs = {
};


export type MutationUpdateCustomerInvoiceGracePeriodArgs = {
input: UpdateCustomerInvoiceGracePeriodInput;
};


export type MutationUpdateCustomerVatRateArgs = {
input: UpdateCustomerVatRateInput;
};
Expand Down Expand Up @@ -2239,6 +2258,8 @@ export type Query = {
customer?: Maybe<CustomerDetails>;
/** Query customer's credit note */
customerCreditNotes?: Maybe<CreditNoteCollection>;
/** Query invoices of a customer */
customerInvoices: InvoiceCollection;
/** Query the usage of the customer on the current billing period */
customerUsage: CustomerUsage;
/** Query customers of an organization */
Expand Down Expand Up @@ -2326,6 +2347,14 @@ export type QueryCustomerCreditNotesArgs = {
};


export type QueryCustomerInvoicesArgs = {
customerId: Scalars['ID'];
limit?: InputMaybe<Scalars['Int']>;
page?: InputMaybe<Scalars['Int']>;
status?: InputMaybe<InvoiceStatusTypeEnum>;
};


export type QueryCustomerUsageArgs = {
customerId?: InputMaybe<Scalars['ID']>;
subscriptionId: Scalars['ID'];
Expand Down Expand Up @@ -2860,6 +2889,14 @@ export type UpdateCustomerInput = {
zipcode?: InputMaybe<Scalars['String']>;
};

/** Autogenerated input type of UpdateCustomerInvoiceGracePeriod */
export type UpdateCustomerInvoiceGracePeriodInput = {
/** A unique identifier for the client performing the mutation. */
clientMutationId?: InputMaybe<Scalars['String']>;
id: Scalars['ID'];
invoiceGracePeriod?: InputMaybe<Scalars['Int']>;
};

/** Autogenerated input type of UpdateCustomerVatRate */
export type UpdateCustomerVatRateInput = {
/** A unique identifier for the client performing the mutation. */
Expand Down

0 comments on commit 1a46f89

Please sign in to comment.