Skip to content

Commit

Permalink
fix(cards): correct sorting order of active announcements by priority
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Nov 10, 2024
1 parent 0e887af commit b853961
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ android {
applicationId 'app.neuland'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 186
versionCode 188
versionName "0.10.1"
}
signingConfigs {
Expand Down
2 changes: 1 addition & 1 deletion app.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"android": {
"package": "app.neuland",
"userInterfaceStyle": "automatic",
"versionCode": 186,
"versionCode": 188,
"splash": {
"image": "./src/assets/splash/splashLight.png",
"resizeMode": "contain",
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/Cards/PopUpCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const PopUpCard: React.FC<PopUpCardProps> = ({ data }) => {
!hiddenAnnouncements.includes(announcement.id)
)
activeAnnouncements.sort(
(a: Announcement, b: Announcement) => b.priority - a.priority
(a: Announcement, b: Announcement) => a.priority - b.priority
)
return activeAnnouncements
}
Expand Down
20 changes: 10 additions & 10 deletions src/data/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"licenseUrl": "https://github.com/aptabase/aptabase-react-native/raw/master/LICENSE",
"parents": "neuland"
},
"@babel/runtime@7.25.9": {
"@babel/runtime@7.26.0": {
"licenses": "MIT",
"repository": "https://github.com/babel/babel",
"licenseUrl": "https://github.com/babel/babel/raw/master/LICENSE",
Expand All @@ -17,7 +17,7 @@
"licenseUrl": "https://github.com/expo/vector-icons/raw/master/LICENSE",
"parents": "neuland"
},
"@gorhom/[email protected].4": {
"@gorhom/[email protected].5": {
"licenses": "MIT",
"repository": "https://github.com/gorhom/react-native-bottom-sheet",
"licenseUrl": "https://github.com/gorhom/react-native-bottom-sheet/raw/master/LICENSE",
Expand All @@ -29,7 +29,7 @@
"licenseUrl": "https://github.com/Kichiyaki/react-native-barcode-generator/raw/master/LICENSE",
"parents": "neuland"
},
"@maplibre/[email protected].22": {
"@maplibre/[email protected].24": {
"licenses": "MIT",
"repository": "https://github.com/maplibre/maplibre-react-native",
"licenseUrl": "https://github.com/maplibre/maplibre-react-native/raw/master/LICENSE.md",
Expand Down Expand Up @@ -59,19 +59,19 @@
"licenseUrl": "https://github.com/Shopify/flash-list/raw/master/LICENSE.md",
"parents": "neuland"
},
"@tanstack/[email protected].16": {
"@tanstack/[email protected].20": {
"licenses": "MIT",
"repository": "https://github.com/TanStack/query",
"licenseUrl": "https://github.com/TanStack/query/raw/master/LICENSE",
"parents": "neuland"
},
"@tanstack/[email protected].16": {
"@tanstack/[email protected].20": {
"licenses": "MIT",
"repository": "https://github.com/TanStack/query",
"licenseUrl": "https://github.com/TanStack/query/raw/master/LICENSE",
"parents": "neuland"
},
"@tanstack/[email protected].16": {
"@tanstack/[email protected].20": {
"licenses": "MIT",
"repository": "https://github.com/TanStack/query",
"licenseUrl": "https://github.com/TanStack/query/raw/master/LICENSE",
Expand Down Expand Up @@ -203,7 +203,7 @@
"licenseUrl": "https://github.com/graphql/graphql-js/raw/master/LICENSE",
"parents": "neuland"
},
"[email protected].2": {
"[email protected].5": {
"licenses": "MIT",
"repository": "https://github.com/i18next/i18next",
"licenseUrl": "https://github.com/i18next/i18next/raw/master/LICENSE",
Expand Down Expand Up @@ -233,7 +233,7 @@
"licenseUrl": "https://github.com/facebook/react/raw/master/LICENSE",
"parents": "neuland"
},
"[email protected].0": {
"[email protected].1": {
"licenses": "MIT",
"repository": "https://github.com/i18next/react-i18next",
"licenseUrl": "https://github.com/i18next/react-i18next/raw/master/LICENSE",
Expand All @@ -251,7 +251,7 @@
"licenseUrl": "https://github.com/mpiannucci/react-native-context-menu-view/raw/master/LICENSE",
"parents": "neuland"
},
"react-native-device-info@13.1.0": {
"react-native-device-info@13.2.0": {
"licenses": "MIT",
"repository": "https://github.com/react-native-device-info/react-native-device-info",
"licenseUrl": "https://github.com/react-native-device-info/react-native-device-info/raw/master/LICENSE",
Expand Down Expand Up @@ -311,7 +311,7 @@
"licenseUrl": "https://github.com/th3rdwave/react-native-safe-area-context/raw/master/LICENSE",
"parents": "neuland"
},
"[email protected].0": {
"[email protected].1": {
"licenses": "MIT",
"repository": "https://github.com/software-mansion/react-native-screens",
"licenseUrl": "https://github.com/software-mansion/react-native-screens/raw/master/LICENSE",
Expand Down

0 comments on commit b853961

Please sign in to comment.