Do not show retry button on token error
這個提交存在於:
父節點
ffa4cfa376
當前提交
b289a85b8a
共有 1 個檔案被更改,包括 9 行新增 和 5 行删除
|
|
@ -141,11 +141,15 @@ function WebSectionList<ItemT, RawData>(props: Props<ItemT, RawData>) {
|
|||
<ErrorView
|
||||
status={status}
|
||||
code={code}
|
||||
button={{
|
||||
icon: 'refresh',
|
||||
text: i18n.t('general.retry'),
|
||||
onPress: () => refreshData(),
|
||||
}}
|
||||
button={
|
||||
code !== API_REQUEST_CODES.BAD_TOKEN
|
||||
? {
|
||||
icon: 'refresh',
|
||||
text: i18n.t('general.retry'),
|
||||
onPress: () => refreshData(),
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
載入中…
新增問題並參考