@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.
- package/dist/components/QuestList.d.ts +1 -2
- package/dist/long-bow.cjs.development.js +2 -3
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +2 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/QuestList.tsx +4 -6
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'react-tippy/dist/tippy.css';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
|
|
5
1
|
import {
|
|
6
2
|
IQuest,
|
|
7
3
|
IQuestObjectiveInteraction,
|
|
8
4
|
IQuestObjectiveKill,
|
|
9
5
|
QuestStatus,
|
|
10
6
|
} from '@rpg-engine/shared';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import styled from 'styled-components';
|
|
11
9
|
import { uiColors } from '../constants/uiColors';
|
|
12
10
|
import { Table, TableCell, TableHeader, TableRow } from './Table/Table';
|
|
13
11
|
import { Ellipsis } from './shared/Ellipsis';
|
|
@@ -115,8 +113,9 @@ const formatObjectives = (
|
|
|
115
113
|
.join('; ');
|
|
116
114
|
};
|
|
117
115
|
|
|
118
|
-
//
|
|
116
|
+
// Updated helper function to format rewards
|
|
119
117
|
const formatRewards = (rewards: IQuest['rewards']) => {
|
|
118
|
+
if (!rewards) return 'No rewards';
|
|
120
119
|
return rewards
|
|
121
120
|
.map(reward => {
|
|
122
121
|
return `${formatText(
|
|
@@ -150,7 +149,6 @@ const getStatusColor = (status?: QuestStatus) => {
|
|
|
150
149
|
}
|
|
151
150
|
};
|
|
152
151
|
|
|
153
|
-
// Styled components
|
|
154
152
|
const QuestListContainer = styled.div`
|
|
155
153
|
margin-top: 20px;
|
|
156
154
|
margin-bottom: 40px;
|