diff --git a/next/components/common/FileList/FileList.tsx b/next/components/common/FileList/FileList.tsx
index 48ebb1949..af34ab3e7 100644
--- a/next/components/common/FileList/FileList.tsx
+++ b/next/components/common/FileList/FileList.tsx
@@ -2,8 +2,7 @@ import { Typography } from '@bratislava/component-library'
import cn from 'utils/cn'
import FileCardWrapper from '@/components/cards/FileCardWrapper'
-import ResponsiveCarousel from '@/components/common/Carousel/ResponsiveCarousel'
-import { Enum_Componentsectionsfilelist_Variant, FileItemBlockFragment } from '@/services/graphql'
+import { FileItemBlockFragment } from '@/services/graphql'
export type TFileSection = {
category?: string
@@ -16,7 +15,6 @@ export type FileListProps = {
className?: string
fileSections?: TFileSection[]
hideCategory?: boolean
- variantFileList?: Enum_Componentsectionsfilelist_Variant
}
/**
@@ -24,14 +22,7 @@ export type FileListProps = {
*/
// TODO remove grouping by category
-const FileList = ({
- className,
- title,
- text,
- fileSections,
- hideCategory,
- variantFileList,
-}: FileListProps) => {
+const FileList = ({ className, title, text, fileSections, hideCategory }: FileListProps) => {
return (
{title || text ? (
@@ -48,43 +39,18 @@ const FileList = ({
{fileSection.category && !hideCategory && (
{fileSection.category}
)}
- {variantFileList === 'rows' && (
-
- {fileSection?.files.map((file, fileIndex) => (
- // eslint-disable-next-line react/no-array-index-key
- -
-
-
- ))}
-
- )}
- {variantFileList === 'grid' && (
-
-
- {fileSection?.files.map((file, fileIndex) => (
- // eslint-disable-next-line react/no-array-index-key
-
-
-
- ))}
-
-
-
(
- // eslint-disable-next-line react/no-array-index-key
-
- ))}
+
+ {fileSection?.files.map((file, fileIndex) => (
+ // eslint-disable-next-line react/no-array-index-key
+ -
+
-
-
- )}
+
+ ))}
+
)
})}
diff --git a/next/components/sections/AccordionSection.tsx b/next/components/sections/AccordionSection.tsx
index 396c201ab..499d0f212 100644
--- a/next/components/sections/AccordionSection.tsx
+++ b/next/components/sections/AccordionSection.tsx
@@ -7,10 +7,7 @@ import FileList from '@/components/common/FileList/FileList'
import Institution from '@/components/common/Institution_Deprecated/Institution_Deprecated'
import NarrowText from '@/components/common/NarrowText/NarrowText'
import Markdown from '@/components/formatting/Markdown/Markdown'
-import {
- AccordionSectionFragment,
- Enum_Componentsectionsfilelist_Variant,
-} from '@/services/graphql'
+import { AccordionSectionFragment } from '@/services/graphql'
import { isDefined } from '@/utils/isDefined'
import { groupByCategory, parsePageLink } from '@/utils/pageUtils_Deprecated'
import { isPresent } from '@/utils/utils'
@@ -71,10 +68,7 @@ const AccordionSection = ({ section }: AccordionSectionProps) => {
{item.fileList?.length ? (
-
+
) : null}
{link?.url && link.title && (