gray-mueller / gray-mueller/foodpanda-clone-using-react-native
Enatega Restaurant Application : Restaurant Closed/Opened toggle button not working properly also check the notification toggle too
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
The "Restaurant Closed/Opened" toggle button is not functioning as intended. Specifically, when attempting to change the restaurant's status, the toggle does not respond or reflect the correct state. Additionally, the notification toggle button exhibits similar unresponsiveness, failing to enable or disable notifications as expected.
To Reproduce
Steps to reproduce the behavior:
Go to 'Enatega Restaurant application'
Click on 'Profile' menu button.
See error now change statuses closed or open than close the app , now again open the application the status is changed automatically similarly issue with notifications.
Expected behavior
Both toggle buttons should accurately reflect and change their respective states upon user interaction. The "Restaurant Closed/Opened" toggle should switch between "Closed" and "Opened" statuses, updating the restaurant's availability accordingly. The notification toggle should enable or disable notifications based on the user's selection.
Screenshots
Screen_Recording_20250128_115912.mp4
Smartphone (please complete the following information):
Device: [e.g. Infinix Hot 50]
OS: [e.g. Android ]
Browser [e.g. Application]
Version [e.g. Latest ]
Contributor guide
Research direction
Start in the Enatega Restaurant application and reproduce the issue from the Profile menu by changing both toggles, closing the app, and reopening it. Trace the restaurant status and notification settings from the Profile screen to determine why their displayed or persisted states change unexpectedly. Done means both toggles respond to interaction, retain the selected state after relaunch, and match the actual restaurant availability and notification setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100