Skip to content

Conversation

@souyahia-monk
Copy link
Contributor

No description provided.

@souyahia-monk souyahia-monk merged commit 67fd360 into refacto/main Jan 5, 2024
@souyahia-monk souyahia-monk deleted the refacto/MN-435/toggle-button-component branch January 5, 2024 09:40
dlymonk pushed a commit that referenced this pull request Jan 5, 2024
dlymonk added a commit that referenced this pull request Jan 5, 2024
* Added ObjectTranlation type

* Added useObjectTranslation hook

* Renamed CaptureCaptureHUDButtons to PhotoCaptureHUDButtons

* Added PhotoCaptureHUDSightsSlider component: display a scrolling sights label

* Added PhotoCaptureHUDCounter component

* Added PhotoCaptureHUDPreview component that render SightsSlider and Counter

* Added PhotoCaptureHUD that render the HUDPreview and HUDButtons

* Fix: lint

* fix: applying feedback review, Sights liftup in PhotoCaptureHUD

* rename Slider to SightsSlider

* useObjectTranslation/CaptureHUDPreviewtests added + fix

* directory structure changed by PreviewSight and PreviewAddDamage view

directory structure changed to be more clear with PreviewSight and PreviewAddDamage view

* TSDoc added to i18n language types

* fix on tests and import

* useSightLabel's hook moved to @monkvision/common + SightSlider component styles sight.id: string instead of sight:Sight

* SightsSlider tests done

* sight overlay now take all preview screen space

* sight centered in slider when selected

* responsive style added when portrait view

* when the picture is taken, the sight button(in the slider) changed to a light color and have a check icon

* TSDoc useSightLabel

* keep sight button selected in the center when switching back to main preview

* TSDoc useObjectTranslation & useSightLabel hooks

* fixing PR review comments

* PhotoCapture logic and component plug to camera. refacto + rename funct/var

* renaming component for more readability + callback mode (avoiding rerender camera) + button in AddDamagePreview traduction in sync

* tests + i18nAddDamage instance moved to separate file

* SightOverlay stays in CameraPreview frame in both landscape and portrait mode.

* SightOverlay equals CameraPreview in aspect ratio

* fixing PR (check comments)

* fixing PR (check comments)

* Created SwitchButton component (#656)

* import changeAlpha function in usePhotoHUDButtonBackground hook
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.

3 participants