Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support different buttons for TicketCreateModal #318

Conversation

wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Sep 8, 2023

Overview / Changes

  1. Allow TicketCreateModal to use different size (or type) buttons.
  2. Reduce size of [ + New Ticket ] on Dashboard.

Related

Testing

  1. Open Dashboard.
  2. Verify "+ New Ticket" button is smaller.
  3. Thus, see height of header title and action height are less different.

UI

before after
before after

TicketCreateModal <Button> has TypeScript "problem":

Type '{ children: ReactNode; type: "link" | "primary" | "secondary" | "tertiary" | "active" | undefined; size: "small" | "short" | "medium" | "long" | undefined; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & ButtonProps'.
  Types of property 'type' are incompatible.
    Type '"link" | "primary" | "secondary" | "tertiary" | "active" | undefined' is not assignable to type '"secondary" | "tertiary" | "active" | undefined'.
      Type '"link"' is not assignable to type '"secondary" | "tertiary" | "active" | undefined'.ts(2322)
…ce/tup-414-help-users-view-all-tickets--indirectly-support-small-size-button
…ce/tup-414-help-users-view-all-tickets--indirectly-support-small-size-button
…ce/tup-414-help-users-view-all-tickets--indirectly-support-small-size-button
…ce/tup-414-help-users-view-all-tickets--indirectly-support-small-size-button
1. Reverse all the many changes to <Button>.
2. Allow <TicketCreateModal> to accept an element instead of jsut text.
    - If an elment is passed, set onClick on it.
@wesleyboar
Copy link
Member Author

Superseded by #319.

@wesleyboar wesleyboar closed this Sep 8, 2023
@wesleyboar wesleyboar deleted the enhance/tup-414-help-users-view-all-tickets--indirectly-support-small-size-button branch October 9, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant