Fakultas Ilmu Komputer UI

Commit fb80bff3 authored by wulanmantiri's avatar wulanmantiri
Browse files

[REFACTOR] Fix warnings and give better namings

parent d8f289bb
Pipeline #81626 failed with stages
in 14 minutes and 54 seconds
......@@ -46,7 +46,6 @@ const LikertScale: FC<Props> = ({
style={{ flex: 1 / choices.length }}
key={`button${choice.value}`}>
<RadioButton
testID={`${label}-${value}`}
key={choice.value}
checked={value === choice.value}
onPress={() => onChange(choice.value)}
......
......@@ -17,10 +17,10 @@ import {
Questionnaire4,
Questionnaire5,
} from 'scenes/questionnaire/ExtendedQuestionnaire/components';
import ReadOnlyWeeklyReport from 'scenes/report/ReadOnlyWeeklyReport';
import { screenOptions } from 'app/styles';
import { styles } from './styles';
import { ReadOnlyWeeklyReport } from 'scenes';
interface NavRoute<T = any> {
name: string;
......
......@@ -9,7 +9,7 @@ import { generateValidationSchema } from 'utils/form';
import { DietReportPage } from './components';
import { useRoute, useNavigation } from '@react-navigation/native';
import {
retrieveUserReportById,
retrieveUserReportByIdApi,
createNutritionistCommentApi,
} from 'services/progress';
import { NutritionistCommentRequest } from 'services/progress/models';
......@@ -28,7 +28,7 @@ const DietReportForNutritionist: FC = () => {
const route = useRoute();
const { id } = route.params as ParamsDietReport;
const { isLoading, data: userReports = [] } = useApi(() =>
retrieveUserReportById(id),
retrieveUserReportByIdApi(id),
);
const [activeSlide, setActiveSlide] = useState(1);
......
......@@ -8,7 +8,7 @@ import {
NutritionistCommentResponse,
} from './models';
export const retrieveUserReportById = (
export const retrieveUserReportByIdApi = (
clientId: number,
): ApiResponse<UserReportResponse[]> => {
return api(RequestMethod.GET, apiUrls.userReportByClientId(clientId));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment