@@ -7,6 +7,7 @@ import { BCState } from '@/store'
7
7
import { BCSCRootStackParams , BCSCScreens } from '@/bcsc-theme/types/navigators'
8
8
import { StackNavigationProp } from '@react-navigation/stack'
9
9
import { useNavigation } from '@react-navigation/native'
10
+ import { useTranslation } from 'react-i18next'
10
11
11
12
interface SavedServiceProps {
12
13
title : string
@@ -35,17 +36,14 @@ const SavedService: React.FC<SavedServiceProps> = ({ title, onPress }) => {
35
36
36
37
type ServicesNavigationProp = StackNavigationProp < BCSCRootStackParams , BCSCScreens . ServiceLoginScreen >
37
38
38
- // to be replaced with API response or translation entries, whichever ends up being the case
39
- const mockTitle = 'YOUR SAVED SERVICES'
40
- const mockNoServicesMessage = 'No saved services'
41
-
42
39
const SavedServices : React . FC = ( ) => {
43
40
const { ColorPalette, Spacing } = useTheme ( )
44
41
const [ store ] = useStore < BCState > ( )
45
42
const navigation = useNavigation < ServicesNavigationProp > ( )
43
+ const { t } = useTranslation ( )
46
44
47
45
const serviceClients = useFilterServiceClients ( {
48
- clientRefIdsFilter : store . bcsc . bookmarks ,
46
+ serviceClientIdsFilter : store . bcsc . bookmarks ,
49
47
} )
50
48
51
49
const styles = StyleSheet . create ( {
@@ -69,7 +67,7 @@ const SavedServices: React.FC = () => {
69
67
< View style = { styles . headerContainer } >
70
68
< Icon name = "bookmark" size = { 24 } color = { ColorPalette . brand . tertiary } style = { styles . bookmarkIcon } />
71
69
< ThemedText variant = { 'bold' } style = { { color : ColorPalette . brand . tertiary } } >
72
- { mockTitle }
70
+ { t ( 'Services.SavedServices' ) }
73
71
</ ThemedText >
74
72
</ View >
75
73
@@ -78,7 +76,7 @@ const SavedServices: React.FC = () => {
78
76
variant = { 'headingFour' }
79
77
style = { { color : ColorPalette . brand . tertiary , fontWeight : 'normal' , paddingHorizontal : Spacing . md } }
80
78
>
81
- { mockNoServicesMessage }
79
+ { t ( 'Services.NoSavedServices' ) }
82
80
</ ThemedText >
83
81
) : (
84
82
serviceClients . map ( ( serviceClient ) => (
0 commit comments