Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-solecki committed Jan 12, 2024
1 parent 999379a commit 61ddc59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/AutoEmailLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ type AutoEmailLinkProps = {
* - Else just render it inside `Text` component
*/

function AutoEmailLink(props: AutoEmailLinkProps) {
function AutoEmailLink({text, style}: AutoEmailLinkProps) {
const styles = useThemeStyles();
return (
<Text style={props.style}>
{props.text.split(CONST.REG_EXP.EXTRACT_EMAIL).map((str, index) => {
<Text style={style}>
{text.split(CONST.REG_EXP.EXTRACT_EMAIL).map((str, index) => {
if (CONST.REG_EXP.EMAIL.test(str)) {
return (
<TextLink
Expand All @@ -36,7 +36,7 @@ function AutoEmailLink(props: AutoEmailLinkProps) {

return (
<Text
style={props.style}
style={style}
// eslint-disable-next-line react/no-array-index-key
key={`${index}-${str}`}
>
Expand Down

0 comments on commit 61ddc59

Please sign in to comment.