Fix React DOM warning (#2615)

This commit is contained in:
Greg Bergé
2024-12-10 17:39:22 +01:00
committed by GitHub
parent 31396d8109
commit e85d357abd
2 changed files with 3 additions and 1 deletions
@@ -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':
+2
View File
@@ -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', () => {