mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
Fix React DOM warning (#2615)
This commit is contained in:
@@ -104,7 +104,7 @@ function HeaderItemButton(
|
||||
linkStyle: 'button-secondary' | 'button-primary';
|
||||
},
|
||||
) {
|
||||
const { linkStyle, headerPreset, title, href, ...rest } = props;
|
||||
const { linkStyle, headerPreset, title, href, isDropdown, ...rest } = props;
|
||||
const variant = (() => {
|
||||
switch (linkStyle) {
|
||||
case 'button-secondary':
|
||||
|
||||
@@ -9,6 +9,8 @@ describe('getEmojiForCode', () => {
|
||||
|
||||
it('should handle complex codes', () => {
|
||||
expect(getEmojiForCode('1f935-2642')).toEqual('🤵♂️');
|
||||
expect(getEmojiForCode('1f3c3-2642')).toEqual('🏃♂️');
|
||||
expect(getEmojiForCode('1f468-2696')).toEqual('👨⚖️');
|
||||
});
|
||||
|
||||
it('should return an empty string if invalid', () => {
|
||||
|
||||
Reference in New Issue
Block a user