Skip to content

Commit e85d357

Browse files
authored
Fix React DOM warning (#2615)
1 parent 31396d8 commit e85d357

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/gitbook/src/components/Header/HeaderLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function HeaderItemButton(
104104
linkStyle: 'button-secondary' | 'button-primary';
105105
},
106106
) {
107-
const { linkStyle, headerPreset, title, href, ...rest } = props;
107+
const { linkStyle, headerPreset, title, href, isDropdown, ...rest } = props;
108108
const variant = (() => {
109109
switch (linkStyle) {
110110
case 'button-secondary':

packages/gitbook/src/lib/emojis.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ describe('getEmojiForCode', () => {
99

1010
it('should handle complex codes', () => {
1111
expect(getEmojiForCode('1f935-2642')).toEqual('🤵‍♂️');
12+
expect(getEmojiForCode('1f3c3-2642')).toEqual('🏃‍♂️');
13+
expect(getEmojiForCode('1f468-2696')).toEqual('👨‍⚖️');
1214
});
1315

1416
it('should return an empty string if invalid', () => {

0 commit comments

Comments
 (0)