File tree Expand file tree Collapse file tree
package/src/components/Poll/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import React , { useMemo } from 'react' ;
1+ import React , { useCallback , useMemo } from 'react' ;
22import { StyleSheet , Text , View } from 'react-native' ;
33
44import { useTheme } from '../../../contexts/themeContext/ThemeContext' ;
55import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext' ;
6- import { IconProps , SendPoll } from '../../../icons' ;
6+ import { Check , IconProps } from '../../../icons' ;
77import { NewCross } from '../../../icons/NewCross' ;
88import { primitives } from '../../../theme' ;
99import { Button } from '../../ui' ;
@@ -41,18 +41,12 @@ export const CreatePollHeader = ({
4141 } = useTheme ( ) ;
4242 const styles = useStyles ( ) ;
4343
44- const renderSendPollIcon = ( props : IconProps ) => {
45- return (
46- < SendPoll
47- { ...props }
48- height = { 18 }
49- fill = { semantics . textOnAccent }
50- width = { 18 }
51- stroke = { 'none' }
52- strokeWidth = { 0 }
53- />
54- ) ;
55- } ;
44+ const renderSendPollIcon = useCallback (
45+ ( props : IconProps ) => {
46+ return < Check { ...props } height = { 18 } stroke = { semantics . textOnAccent } width = { 18 } /> ;
47+ } ,
48+ [ semantics . textOnAccent ] ,
49+ ) ;
5650
5751 return (
5852 < View style = { [ styles . headerContainer , headerContainer ] } >
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export const PollModalHeader = ({ onPress, title }: PollModalHeaderProps) => {
2626 < View style = { styles . sideContainer } >
2727 < Button
2828 variant = 'secondary'
29- type = 'outline '
29+ type = 'solid '
3030 size = 'md'
3131 iconOnly
3232 LeadingIcon = { NewCross }
You can’t perform that action at this time.
0 commit comments