-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: message metrics item icon size (#774)
Co-authored-by: gabriellsh <[email protected]>
- Loading branch information
1 parent
de2ada3
commit e1100e5
Showing
2 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
...elage/src/components/Message/MessageMetrics/MessageMetricsItem/MessageMetricsItemIcon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import type { ComponentProps } from 'react'; | ||
import React from 'react'; | ||
|
||
import { Icon } from '../../../..'; | ||
|
||
type MessageMetricsItemIconProps = { | ||
name: 'thread' | 'user' | 'clock' | 'discussion'; | ||
}; | ||
} & Omit<ComponentProps<typeof Icon>, 'name'>; | ||
|
||
export const MessageMetricsItemIcon = (props: MessageMetricsItemIconProps) => ( | ||
<Icon {...{ size: 'x24' }} {...(props as any)} /> | ||
<Icon size='x20' {...props} /> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters