mirror of
https://github.com/tooot-app/app
synced 2024-12-22 07:34:06 +01:00
Fix details on timeline
This commit is contained in:
parent
cc02626adb
commit
ed9a58355a
1
.github/workflows/development.yml
vendored
1
.github/workflows/development.yml
vendored
@ -46,5 +46,6 @@ jobs:
|
|||||||
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
|
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
|
||||||
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
|
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
|
||||||
SUPPLY_JSON_KEY_DATA: ${{ secrets.SUPPLY_JSON_KEY_DATA }}
|
SUPPLY_JSON_KEY_DATA: ${{ secrets.SUPPLY_JSON_KEY_DATA }}
|
||||||
|
GH_PAT_GET_RELEASE: ${{ secrets.GH_PAT_GET_RELEASE }}
|
||||||
FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}
|
FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: yarn app:build
|
run: yarn app:build
|
||||||
|
1
.github/workflows/staging.yml
vendored
1
.github/workflows/staging.yml
vendored
@ -48,5 +48,6 @@ jobs:
|
|||||||
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
|
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
|
||||||
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
|
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
|
||||||
SUPPLY_JSON_KEY_DATA: ${{ secrets.SUPPLY_JSON_KEY_DATA }}
|
SUPPLY_JSON_KEY_DATA: ${{ secrets.SUPPLY_JSON_KEY_DATA }}
|
||||||
|
GH_PAT_GET_RELEASE: ${{ secrets.GH_PAT_GET_RELEASE }}
|
||||||
FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}
|
FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: yarn app:build
|
run: yarn app:build
|
||||||
|
@ -143,7 +143,7 @@ private_lane :build_android do
|
|||||||
end
|
end
|
||||||
|
|
||||||
lane :build do
|
lane :build do
|
||||||
releaseExists = get_github_release(url: GITHUB_REPO, version: GITHUB_RELEASE)
|
releaseExists = get_github_release(url: GITHUB_REPO, version: GITHUB_RELEASE, api_token: ENV['GH_PAT_GET_RELEASE'])
|
||||||
if releaseExists
|
if releaseExists
|
||||||
puts("Release #{GITHUB_RELEASE} exists. Continue with building React Native only.")
|
puts("Release #{GITHUB_RELEASE} exists. Continue with building React Native only.")
|
||||||
else
|
else
|
||||||
|
@ -85,7 +85,6 @@ const Screens: React.FC<Props> = ({ localCorrupt }) => {
|
|||||||
const showLocalCorrect = () => {
|
const showLocalCorrect = () => {
|
||||||
if (localCorrupt) {
|
if (localCorrupt) {
|
||||||
displayMessage({
|
displayMessage({
|
||||||
autoHide: false,
|
|
||||||
message: t('index.localCorrupt'),
|
message: t('index.localCorrupt'),
|
||||||
description: localCorrupt.length ? localCorrupt : undefined,
|
description: localCorrupt.length ? localCorrupt : undefined,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
@ -49,7 +49,7 @@ const displayMessage = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
showMessage({
|
showMessage({
|
||||||
duration: duration === 'short' ? 1500 : 3000,
|
duration: type === 'error' ? 5000 : duration === 'short' ? 1500 : 3000,
|
||||||
autoHide,
|
autoHide,
|
||||||
message,
|
message,
|
||||||
description,
|
description,
|
||||||
|
@ -58,8 +58,8 @@ const Timeline: React.FC<Props> = ({
|
|||||||
...queryKey[1],
|
...queryKey[1],
|
||||||
options: {
|
options: {
|
||||||
notifyOnChangeProps: Platform.select({
|
notifyOnChangeProps: Platform.select({
|
||||||
ios: ['data', 'isFetching'],
|
ios: ['dataUpdatedAt', 'isFetching'],
|
||||||
android: ['data', 'isFetching', 'isLoading']
|
android: ['dataUpdatedAt', 'isFetching', 'isLoading']
|
||||||
}),
|
}),
|
||||||
getNextPageParam: lastPage =>
|
getNextPageParam: lastPage =>
|
||||||
lastPage?.links?.next && { max_id: lastPage.links.next }
|
lastPage?.links?.next && { max_id: lastPage.links.next }
|
||||||
|
@ -18,7 +18,9 @@ const TimelineFooter = React.memo(
|
|||||||
...queryKey[1],
|
...queryKey[1],
|
||||||
options: {
|
options: {
|
||||||
enabled: !disableInfinity,
|
enabled: !disableInfinity,
|
||||||
notifyOnChangeProps: ['hasNextPage']
|
notifyOnChangeProps: ['hasNextPage'],
|
||||||
|
getNextPageParam: lastPage =>
|
||||||
|
lastPage?.links?.next && { max_id: lastPage.links.next }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user