From eb4c3a4485e99a5dadf41e8d0536a41f51bb4a0a Mon Sep 17 00:00:00 2001 From: Uchechukwu Obasi Date: Thu, 23 Dec 2021 09:28:41 +0100 Subject: [PATCH] Update frontend guide to reflect new paradigm for api organization (#43435) --- contribute/style-guides/frontend.md | 1 + 1 file changed, 1 insertion(+) diff --git a/contribute/style-guides/frontend.md b/contribute/style-guides/frontend.md index b133f1a4484..6794894f252 100644 --- a/contribute/style-guides/frontend.md +++ b/contribute/style-guides/frontend.md @@ -255,6 +255,7 @@ Organize your code in a directory that encloses feature code: - Put React components in `components` directory (i.e. `features/my-feature/components/ButtonPeopleDreamOf.tsx`). - Put test files next to the test subject. - Put containers (pages) in feature root (i.e. `features/my-feature/DashboardPage.tsx`). +- Put API function calls that isn't a redux thunk in an `api.ts` file within the same directory. - Subcomponents can live in the component folders. Small component do not need their own folder. - Component SASS styles should live in the same folder as component code.