@srimandir/make-your-own-ritual 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export type { RitualDayOption } from './components/SelectRitualDaySheet';
6
6
  export { DeathTithi } from './components/DeathTithi';
7
7
  export type { DeathTithiProps } from './components/DeathTithi';
8
8
  export { ALL_ANCESTORS_ID, ANCESTOR_OPTIONS } from '../../pitru-paksh-common/dist/pitru-paksh-common.js';
9
- export type { RitualDataAction, PhoneNumberData, PujaId, SelectedItem, AncestorSelection, TithiPreview, TithiValidity, DeathTithiSelection, MakeYourOwnRitualDataState, SetSelectedRitualsAction, LandingPageAction, LandingPageStore, PitruPakshStoreTemple, PitruPakshStoreAddOn, PitruPakshOrderedRitual, PitruPakshStoreData, PitruPakshRenderableRitual, } from './types';
9
+ export type { RitualDataAction, PhoneNumberData, PujaId, SelectedItem, AncestorSelection, TithiPreview, TithiValidity, DeathTithiSelection, MakeYourOwnRitualDataState, SetSelectedRitualsAction, LandingPageAction, LandingPageStore, PitruPakshStoreTemple, PitruPakshStoreAddOn, PitruPakshOrderedRitual, PitruPakshStoreData, PitruPakshRenderableRitual, RitualType, } from './types';
10
10
  export { MakeYourOwnRitualPage } from './components/MakeYourOwnRitualPage';
11
11
  export type { MakeYourOwnRitualPageProps } from './components/MakeYourOwnRitualPage';
12
12
  export { LandingPage } from './components/LandingPage';
@@ -1617,7 +1617,9 @@ function qo({
1617
1617
  bookedLabel: m("ritualBooked"),
1618
1618
  priceLabel: m("ritualPriceLabel"),
1619
1619
  price: `${d.currency_symbol}${d.price}`,
1620
- linkLabel: m(d.isAddOn ? "ritualAboutChadhava" : "ritualAboutSeva"),
1620
+ linkLabel: m(
1621
+ d.ritualType === "ritual" ? "ritualAboutLink" : d.ritualType === "chadhava" ? "ritualAboutChadhava" : "ritualAboutSeva"
1622
+ ),
1621
1623
  onLinkClick: () => u?.(d.id),
1622
1624
  selected: j,
1623
1625
  onToggle: () => {
@@ -1629,7 +1631,7 @@ function qo({
1629
1631
  cutoff_hour: d.cutoff_hour,
1630
1632
  cutoff_minute: d.cutoff_minute,
1631
1633
  price: d.price,
1632
- type: d.isAddOn ? "chadava" : "seva"
1634
+ type: d.ritualType === "chadhava" ? "chadava" : "seva"
1633
1635
  }), n({ type: "SET_SELECTED_RITUALS", payload: Array.from(C.values()) });
1634
1636
  },
1635
1637
  selectAriaLabel: m("ritualSelectAriaLabel")