Skip to content

Commit 546d111

Browse files
committed
feat(rdc): Allow augmentations in AssumedBuffs
1 parent 75d19c5 commit 546d111

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

react-discretize-components/src/character/AssumedBuffs/AssumedBuffs.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const Example: StoryObj<typeof AssumedBuffs> = {
3232
type: 'Item',
3333
},
3434
{ gw2id: 96613, type: 'Item' },
35+
{ id: 'Mist Attunement 3', type: 'Augmentation' },
3536
],
3637
},
3738
};

react-discretize-components/src/character/AssumedBuffs/AssumedBuffs.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
Augmentation,
23
Boon,
34
CommonEffect,
45
Condition,
@@ -18,6 +19,7 @@ export interface AssumedBuffsProps {
1819
| { type: 'Trait'; gw2id: number; id?: undefined }
1920
| { type: 'CommonEffect'; id: string; gw2id?: undefined }
2021
| { type: 'Item'; id?: string; gw2id: number }
22+
| { type: 'Augmentation'; id: string; gw2id?: undefined }
2123
)[];
2224
className?: string;
2325
}
@@ -82,6 +84,15 @@ const AssumedBuffs = ({ value, className }: AssumedBuffsProps) => {
8284
className={classes.component}
8385
/>
8486
);
87+
case 'Augmentation':
88+
return (
89+
<Augmentation
90+
name={firstUppercase(id)}
91+
disableText
92+
key={key}
93+
className={classes.component}
94+
/>
95+
);
8596
default:
8697
return null;
8798
}

0 commit comments

Comments
 (0)