close #23
In this branch the bistroContext is refectored and state for determinate opendBistros based on weekday & weeknumber is added.
State for storedBistros is refactored to a reducer function. The logic for add/remove/edit is moved to bistroReducer.tsx. Should not create any problem do to no implementation of this funktions in the app.
LikedBistro code should not have been touched in this issue
state that store opened bistros added in bistroContext
manipulated the data in bistroData.ts
used state for opend bistors in BistroScreen and weekday slider
refactored code in BistroCard regarding selecting right data to present
NOTE. The weekday och weeknumber is set to a default value in both BistroScreen and in WeekdaySlider. Important that this default value correspond for right information inUI when app is first started. I see this as a potential problem/drawback in the code, but it works.
close #23 In this branch the bistroContext is refectored and state for determinate opendBistros based on weekday & weeknumber is added.
NOTE. The weekday och weeknumber is set to a default value in both BistroScreen and in WeekdaySlider. Important that this default value correspond for right information inUI when app is first started. I see this as a potential problem/drawback in the code, but it works.