Fix type errors, don't pass event to fns that don't expect it
This commit is contained in:
@@ -49,7 +49,7 @@ export function LeaveConvoPrompt({
|
|||||||
)}
|
)}
|
||||||
confirmButtonCta={_(msg`Leave`)}
|
confirmButtonCta={_(msg`Leave`)}
|
||||||
confirmButtonColor="negative"
|
confirmButtonColor="negative"
|
||||||
onConfirm={leaveConvo}
|
onConfirm={() => leaveConvo()}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ function CantSubscribePrompt({
|
|||||||
</Trans>
|
</Trans>
|
||||||
</Prompt.DescriptionText>
|
</Prompt.DescriptionText>
|
||||||
<Prompt.Actions>
|
<Prompt.Actions>
|
||||||
<Prompt.Action onPress={control.close} cta={_(msg`OK`)} />
|
<Prompt.Action onPress={() => control.close()} cta={_(msg`OK`)} />
|
||||||
</Prompt.Actions>
|
</Prompt.Actions>
|
||||||
</Prompt.Outer>
|
</Prompt.Outer>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ function AltText({text}: {text: string}) {
|
|||||||
<Prompt.DescriptionText selectable>{text}</Prompt.DescriptionText>
|
<Prompt.DescriptionText selectable>{text}</Prompt.DescriptionText>
|
||||||
<Prompt.Actions>
|
<Prompt.Actions>
|
||||||
<Prompt.Action
|
<Prompt.Action
|
||||||
onPress={control.close}
|
onPress={() => control.close()}
|
||||||
cta={_(msg`Close`)}
|
cta={_(msg`Close`)}
|
||||||
color="secondary"
|
color="secondary"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user