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`)}
|
||||
confirmButtonColor="negative"
|
||||
onConfirm={leaveConvo}
|
||||
onConfirm={() => leaveConvo()}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -333,7 +333,7 @@ function CantSubscribePrompt({
|
||||
</Trans>
|
||||
</Prompt.DescriptionText>
|
||||
<Prompt.Actions>
|
||||
<Prompt.Action onPress={control.close} cta={_(msg`OK`)} />
|
||||
<Prompt.Action onPress={() => control.close()} cta={_(msg`OK`)} />
|
||||
</Prompt.Actions>
|
||||
</Prompt.Outer>
|
||||
)
|
||||
|
||||
@@ -181,7 +181,7 @@ function AltText({text}: {text: string}) {
|
||||
<Prompt.DescriptionText selectable>{text}</Prompt.DescriptionText>
|
||||
<Prompt.Actions>
|
||||
<Prompt.Action
|
||||
onPress={control.close}
|
||||
onPress={() => control.close()}
|
||||
cta={_(msg`Close`)}
|
||||
color="secondary"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user