mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
@@ -91,6 +91,9 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
# needed to use 'git tag' and get all tags
|
||||||
|
fetch-depth: 0
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'zulu'
|
distribution: 'zulu'
|
||||||
@@ -106,6 +109,10 @@ jobs:
|
|||||||
# build react app
|
# build react app
|
||||||
- run: yarn install --frozen-lockfile
|
- run: yarn install --frozen-lockfile
|
||||||
- run: CI='' yarn build
|
- run: CI='' yarn build
|
||||||
|
# set android versionCode and versionName
|
||||||
|
- run: sed -i "s/versionCode 1/versionCode $(git tag | wc -l)/" ./android/app/build.gradle
|
||||||
|
- run: sed -i "s/versionName \"1.0\"/versionName \"$(node -e "console.log(require('./package.json').version)")\"/" ./android/app/build.gradle
|
||||||
|
- run: cat ./android/app/build.gradle
|
||||||
# build apk
|
# build apk
|
||||||
- run: npx cap update
|
- run: npx cap update
|
||||||
- run: npx cap copy
|
- run: npx cap copy
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const useFeedStateString = (subplebbits) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!subplebbits) {
|
if (!subplebbits) {
|
||||||
return undefined;
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const states = {}
|
const states = {}
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
import { useMemo } from 'react'
|
import { useMemo } from 'react'
|
||||||
|
|
||||||
const useStateString = (commentOrSubplebbit) => {
|
const useStateString = (commentOrSubplebbit) => {
|
||||||
|
// dont show state string if the data is already fetched
|
||||||
|
if (commentOrSubplebbit?.updatedAt || commentOrSubplebbit?.state === 'succeeded') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
return useMemo(() => {
|
return useMemo(() => {
|
||||||
if (!commentOrSubplebbit?.clients) {
|
if (!commentOrSubplebbit?.clients) {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user