@rpg-engine/long-bow 0.6.71 → 0.6.73

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.
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
- import 'react-tippy/dist/tippy.css';
3
1
  import { IQuest } from '@rpg-engine/shared';
2
+ import React from 'react';
4
3
  export interface IQuestListProps {
5
4
  quests?: IQuest[];
6
5
  }
@@ -19,7 +19,6 @@ var ReactDOM = _interopDefault(require('react-dom'));
19
19
  var lodash = require('lodash');
20
20
  var mobxReactLite = require('mobx-react-lite');
21
21
  var ai = require('react-icons/ai');
22
- require('react-tippy/dist/tippy.css');
23
22
  require('rpgui/rpgui.css');
24
23
  require('rpgui/rpgui.min.js');
25
24
  var capitalize = _interopDefault(require('lodash/capitalize'));
@@ -32125,8 +32124,9 @@ var formatObjectives = function formatObjectives(objectives) {
32125
32124
  }
32126
32125
  }).join('; ');
32127
32126
  };
32128
- // Other helper functions remain the same
32127
+ // Updated helper function to format rewards
32129
32128
  var formatRewards = function formatRewards(rewards) {
32129
+ if (!rewards) return 'No rewards';
32130
32130
  return rewards.map(function (reward) {
32131
32131
  return "" + formatText(reward.itemKeys.map(function (itemKey) {
32132
32132
  return itemKey + ' x' + reward.qty;
@@ -32154,7 +32154,6 @@ var getStatusColor = function getStatusColor(status) {
32154
32154
  // Default to white
32155
32155
  }
32156
32156
  };
32157
- // Styled components
32158
32157
  var QuestListContainer = /*#__PURE__*/styled__default.div.withConfig({
32159
32158
  displayName: "QuestList__QuestListContainer",
32160
32159
  componentId: "sc-1a2vx6q-0"