fix: 🐛 Tog bort omladdning
This commit is contained in:
parent
5fb55875b8
commit
723a9dfae0
|
@ -39,7 +39,6 @@ export const Calendar = ({ }) => {
|
|||
</View>
|
||||
) : (
|
||||
<List
|
||||
onRefresh={refresh}
|
||||
refreshing={refreshing}
|
||||
style={styles.container}
|
||||
data={data.sort((a, b) => b.startDate < a.startDate)}
|
||||
|
|
|
@ -39,7 +39,6 @@ export const Classmates = () => {
|
|||
|
||||
return (
|
||||
<List
|
||||
onRefresh={refresh}
|
||||
refreshing={refreshing}
|
||||
style={styles.container}
|
||||
data={data}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { useNews, useNewsDetails } from '@skolplattformen/api-hooks'
|
||||
import { List } from '@ui-kitten/components'
|
||||
import { useNews } from '@skolplattformen/api-hooks'
|
||||
import { List, Text } from '@ui-kitten/components'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import { StyleSheet } from 'react-native'
|
||||
import { useChild } from './childContext.component'
|
||||
|
@ -16,16 +16,17 @@ export const NewsList = () => {
|
|||
const refresh = () => reload()
|
||||
|
||||
return (
|
||||
<List
|
||||
onRefresh={refresh}
|
||||
refreshing={refreshing}
|
||||
style={styles.container}
|
||||
contentContainerStyle={styles.contentContainer}
|
||||
data={data}
|
||||
renderItem={(info) => (
|
||||
<NewsListItem key={info.item.id} item={info.item} />
|
||||
)}
|
||||
/>
|
||||
<>
|
||||
<List
|
||||
refreshing={refreshing}
|
||||
style={styles.container}
|
||||
contentContainerStyle={styles.contentContainer}
|
||||
data={data}
|
||||
renderItem={(info) => (
|
||||
<NewsListItem key={info.item.id} item={info.item} />
|
||||
)}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ export const NotificationsList = () => {
|
|||
const refresh = () => reload()
|
||||
return (
|
||||
<List
|
||||
onRefresh={refresh}
|
||||
refreshing={refreshing}
|
||||
style={styles.container}
|
||||
contentContainerStyle={styles.contentContainer}
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
"@react-navigation/material-top-tabs": "5.3.13",
|
||||
"@react-navigation/native": "5.9.2",
|
||||
"@react-navigation/stack": "5.14.2",
|
||||
"@skolplattformen/api-hooks": "1.4.0",
|
||||
"@skolplattformen/embedded-api": "1.2.0",
|
||||
"@skolplattformen/api-hooks": "1.5.1",
|
||||
"@skolplattformen/embedded-api": "1.3.0",
|
||||
"@ui-kitten/components": "5.0.0",
|
||||
"@ui-kitten/eva-icons": "5.0.0",
|
||||
"buffer": "6.0.3",
|
||||
|
|
|
@ -1363,19 +1363,18 @@
|
|||
dependencies:
|
||||
"@sinonjs/commons" "^1.7.0"
|
||||
|
||||
"@skolplattformen/api-hooks@1.4.0":
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/@skolplattformen/api-hooks/-/api-hooks-1.4.0.tgz#d42ce9c5bda11aa51a12a0253ef4718abeee3157"
|
||||
integrity sha512-CMR21dop0fOgx211ohBqt5LDW4Zpnt792vX9oX/LSdgbGZS3GzMmhW0bcPBhuONerZqlTECmNPNHapYqvFF6Zg==
|
||||
"@skolplattformen/api-hooks@1.5.1":
|
||||
version "1.5.1"
|
||||
resolved "https://registry.yarnpkg.com/@skolplattformen/api-hooks/-/api-hooks-1.5.1.tgz#b4595da69d8e5bff42cbd9502cd04f77aba7c4d9"
|
||||
integrity sha512-UPFhuYBRB4sDCl/qrgBP55uuVEm6cqJ5ufD7/WRlD7DKqX4Y1ivtFgDEO1NmFC16I4MbqY6W3LQntjn6JJxsEw==
|
||||
dependencies:
|
||||
"@skolplattformen/embedded-api" "^0.22.0"
|
||||
react-redux "^7.2.2"
|
||||
redux "^4.0.5"
|
||||
|
||||
"@skolplattformen/embedded-api@1.2.0":
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@skolplattformen/embedded-api/-/embedded-api-1.2.0.tgz#f2f0bc280af21ba70e5b5dd524b3dc9204773c19"
|
||||
integrity sha512-GWDO/jcsiSllHTBJ8a8yDbLo056FN0ypb+f4ZdDxShuP+zXcYvS2oCdFpaJGHq/wpccIQpKaW26B/rsefPvXRw==
|
||||
"@skolplattformen/embedded-api@1.3.0":
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@skolplattformen/embedded-api/-/embedded-api-1.3.0.tgz#0e0b2d8a130fdd9b303084de924730c545064b35"
|
||||
integrity sha512-3K4FswSgQbDP6Mxb4DQB9eYFlv4inWBJcz3D1D57HczlH5PopxIQNCltkKlqsFDUKSGlj1QLbfgbFfsIUu6ZOA==
|
||||
dependencies:
|
||||
"@types/he" "^1.1.1"
|
||||
camelcase-keys "^6.2.2"
|
||||
|
@ -1386,17 +1385,6 @@
|
|||
luxon "^1.25.0"
|
||||
node-html-parser "^2.1.0"
|
||||
|
||||
"@skolplattformen/embedded-api@^0.22.0":
|
||||
version "0.22.2"
|
||||
resolved "https://registry.yarnpkg.com/@skolplattformen/embedded-api/-/embedded-api-0.22.2.tgz#c848d4217171a758024d67236ab272e930cc7cad"
|
||||
integrity sha512-xmdMavlpIqvcMJ7CyGF4LINk1f0R0zsDnaHW4vV3f0U22jhBW1f9BIW7PmFQmlM5K1h87Wkk5qalQXeQ5G5iKw==
|
||||
dependencies:
|
||||
camelcase-keys "^6.2.2"
|
||||
events "^3.2.0"
|
||||
h2m "^0.7.0"
|
||||
js-htmlencode "^0.3.0"
|
||||
luxon "^1.25.0"
|
||||
|
||||
"@svgr/babel-plugin-add-jsx-attribute@^4.2.0":
|
||||
version "4.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-4.2.0.tgz#dadcb6218503532d6884b210e7f3c502caaa44b1"
|
||||
|
|
Loading…
Reference in New Issue