FPSMS-frontend
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

index.tsx 426 B

il y a 1 mois
12345678910111213141516171819
  1. import GeneralLoading from "../General/GeneralLoading";
  2. import SearchPage from "./SearchPage";
  3. import { fetchList } from "./action";
  4. interface SubComponents {
  5. Loading: typeof GeneralLoading;
  6. }
  7. const Wrapper: React.FC & SubComponents = async () => {
  8. const dataList = await fetchList();
  9. console.log(dataList);
  10. return <SearchPage dataList={dataList} />;
  11. };
  12. Wrapper.Loading = GeneralLoading;
  13. export default Wrapper;