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

chore/546-handle-action-of-opening-usersnap-feedback-widget-on-the-custom-buttons #682

Conversation

Sworzen1
Copy link
Contributor

@Sworzen1 Sworzen1 commented Apr 9, 2024

List of changes

  • init usersnap in project

Checklist

  • related issue
  • My changes generate no new warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the changelog
  • I have added tests that prove my fix is effective or that my feature works

@Sworzen1 Sworzen1 linked an issue Apr 9, 2024 that may be closed by this pull request
@Sworzen1 Sworzen1 marked this pull request as ready for review April 9, 2024 14:50
CHANGELOG.md Outdated
@@ -10,6 +10,7 @@ changes.

## [Unreleased]

- Inicjalize Usersnap into App [Issue 546](https://github.com/IntersectMBO/govtool/issues/546)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: Inicjalize -> Inicialize


export const UsersnapContext = React.createContext(defaultValues);

type API = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename it to UsersnapAPI as at least me - I often search the repo for the API - so to not confuse myself 😅

on: (eventName: SpaceEventName, callback: SpaceEventCallback) => void;
off: (eventName: SpaceEventName, callback: SpaceEventCallback) => void;
};

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type UsersnapProviderProps {
initParams?: InitOptions
children?: ReactNode
}
export const UsersnapProvider = ({
initParams,
children
}: UsersnapProviderProps

@Sworzen1 Sworzen1 force-pushed the chore/546-handle-action-of-opening-usersnap-feedback-widget-on-the-custom-buttons branch from a99939a to 0382ff4 Compare April 16, 2024 09:44
@Sworzen1 Sworzen1 merged commit af52738 into develop Apr 16, 2024
6 checks passed
@Sworzen1 Sworzen1 deleted the chore/546-handle-action-of-opening-usersnap-feedback-widget-on-the-custom-buttons branch April 16, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥 Frontend Frontend related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle action of opening usersnap feedback widget on the custom buttons
2 participants