Skip to content

Commit 8a36186

Browse files
committed
fix: create poll icon
1 parent 7818ae2 commit 8a36186

2 files changed

Lines changed: 9 additions & 15 deletions

File tree

package/src/components/Poll/components/CreatePollHeader.tsx

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React, { useMemo } from 'react';
1+
import React, { useCallback, useMemo } from 'react';
22
import { StyleSheet, Text, View } from 'react-native';
33

44
import { useTheme } from '../../../contexts/themeContext/ThemeContext';
55
import { useTranslationContext } from '../../../contexts/translationContext/TranslationContext';
6-
import { IconProps, SendPoll } from '../../../icons';
6+
import { Check, IconProps } from '../../../icons';
77
import { NewCross } from '../../../icons/NewCross';
88
import { primitives } from '../../../theme';
99
import { 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]}>

package/src/components/Poll/components/PollModalHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)