diff --git a/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx b/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx index 6a16b2e..dbd1a9c 100644 --- a/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx +++ b/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx @@ -1,10 +1,8 @@ -import React from 'react'; import { useState, useCallback, useEffect } from 'react'; import Box from '@mui/material/Box'; import Grid from '@mui/material/Grid'; import Button from '@mui/material/Button'; -import TextField from '@mui/material/TextField'; import Typography from '@mui/material/Typography'; import Pagination from '@mui/material/Pagination'; @@ -85,8 +83,9 @@ export function DocSearchView({ posts }: Props) { - <> + {filters.map((filter, index) => { + let filterComp; switch (filter.type) { case 'BOOLEAN': @@ -113,21 +112,31 @@ export function DocSearchView({ posts }: Props) { default: console.error(`Unknown filter type: ${filter.type}`); } + return ( - - {filterComp} - - ) + + {filterComp} + + + ); } )} - + {posts.map((post, index) => {