Skip to content

VAR Submit Button Component #1134

Description

@mcatcruz

VAR Submit Button

Figma: VAR Submit Button

Location

Component File:

common/components/componentsBySection/VolunteerActivityReporting/VARSubmitButton.jsx

Storybook File:

common/components/componentsBySection/VolunteerActivityReporting/stories/VARSubmitButton.stories.jsx

Styles File:

civictechprojects/static/css/partials/_VARSubmitButton.scss

Image
<VARSubmitButton
   isClicked={hasSubmitted}
   onClick={handleSubmit}
/>

Props
isClicked (boolean): If true, will render gray button with bold Submit text. If false, renders orange button with regular Submit text.
onClick (function): Callback function that is triggered when Submit button is clicked. Used by the parent component to handle submit logic.

Test cases in Storybook

  • Default State (isClicked={false}): Renders orange button and regular text
  • Clicked State (isClicked={true}): Renders gray button and bold text

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Front EndPrimarily front-end (react/javascript)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions