From 8ea23881f60b352aed58dab3d3d71adcbe3d0d05 Mon Sep 17 00:00:00 2001 From: William Davidson Date: Fri, 30 Aug 2024 16:27:25 +0200 Subject: [PATCH] fixed ui loader on docs page --- src/pages/Doc/index.jsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/pages/Doc/index.jsx b/src/pages/Doc/index.jsx index 4ac049a..033ece4 100644 --- a/src/pages/Doc/index.jsx +++ b/src/pages/Doc/index.jsx @@ -28,26 +28,29 @@ const DocList = () => { }; fetchDocs(); - }, []); + }, []); - if (loading) return
; if (error) return ; return (
-
    + {loading ? ( +
    + +
    + ) : (
      { docs.map(item => - {item.title.replace(/_/g, ' ')} + {item.title.replace(/_/g, ' ')} ) } -
    +
)}
);