Skip to content

Commit

Permalink
fix(suite): missing key props
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-sanderson committed Jul 2, 2024
1 parent ac38f82 commit 20b8eb2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
import styled from 'styled-components';
import { ElevationDown, useElevation } from '../ElevationContext/ElevationContext';
import { Keys, keyboardKeys } from './keyboardKeys';
import { Fragment } from 'react';

export const Container = styled.div<{ $elevation: Elevation; $isActive: boolean }>`
display: flex;
Expand Down Expand Up @@ -45,10 +46,10 @@ const Component = ({ isActive = true, hotkey }: HotkeyBadgeProps) => {
const value = isMac ? macValue : keyObject.value;

return (
<>
<span key={`hotkey-${key}-${index}`}>{value.toUpperCase()}</span>
<Fragment key={`hotkey-${key}-${index}`}>
<span>{value.toUpperCase()}</span>
{isNotLast && <Plus />}
</>
</Fragment>
);
})}
</Container>
Expand Down

0 comments on commit 20b8eb2

Please sign in to comment.