Skip to content

Commit

Permalink
feat(cpd): add surveys
Browse files Browse the repository at this point in the history
Refs #258
  • Loading branch information
lpezzolla authored and Bri74 committed Dec 6, 2023
1 parent 9026685 commit 5fc507e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/features/services/screens/ServicesScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
faBookBookmark,
faBriefcase,
faBullhorn,
faClipboardQuestion,
faComments,
faIdCard,
faMobileScreenButton,
Expand Down Expand Up @@ -125,7 +126,7 @@ export const ServicesScreen = () => {
{
id: 'surveys',
name: t('surveysScreen.title'),
icon: faComments,
icon: faClipboardQuestion,
disabled: isOffline,
linkTo: { screen: 'Surveys' },
},
Expand Down
7 changes: 5 additions & 2 deletions src/features/surveys/screens/SurveyListScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { FlatList, Platform } from 'react-native';

import { faCheck } from '@fortawesome/free-solid-svg-icons';
import { faClipboardQuestion } from '@fortawesome/free-solid-svg-icons';
import { EmptyState } from '@lib/ui/components/EmptyState';
import { IndentedDivider } from '@lib/ui/components/IndentedDivider';
import { RefreshControl } from '@lib/ui/components/RefreshControl';
Expand Down Expand Up @@ -58,7 +58,10 @@ export const SurveyListScreen = ({ route }: Props) => {
ListFooterComponent={<BottomBarSpacer />}
ListEmptyComponent={
!surveysQuery.isLoading ? (
<EmptyState message={t('courseFilesTab.empty')} icon={faCheck} />
<EmptyState
message={t('surveysScreen.compiledEmptyState')}
icon={faClipboardQuestion}
/>
) : null
}
/>
Expand Down
6 changes: 3 additions & 3 deletions src/features/surveys/screens/SurveysScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { SafeAreaView, ScrollView, StyleSheet } from 'react-native';

import { faComments } from '@fortawesome/free-regular-svg-icons';
import { faClipboardQuestion } from '@fortawesome/free-solid-svg-icons';
import { EmptyState } from '@lib/ui/components/EmptyState';
import { OverviewList } from '@lib/ui/components/OverviewList';
import { RefreshControl } from '@lib/ui/components/RefreshControl';
Expand Down Expand Up @@ -49,7 +49,7 @@ export const SurveysScreen = ({ navigation }: Props) => {
<OverviewList>
<EmptyState
message={t('surveysScreen.toBeCompiledEmptyState')}
icon={faComments}
icon={faClipboardQuestion}
/>
</OverviewList>
))}
Expand Down Expand Up @@ -94,7 +94,7 @@ export const SurveysScreen = ({ navigation }: Props) => {
<OverviewList>
<EmptyState
message={t('surveysScreen.compiledEmptyState')}
icon={faComments}
icon={faClipboardQuestion}
/>
</OverviewList>
))}
Expand Down

0 comments on commit 5fc507e

Please sign in to comment.