11'use client' ;
22
3- import { graphql } from '@/gql' ;
4- import { useQuery } from '@tanstack/react-query' ;
53import Link from 'next/link' ;
64import { useParams } from 'next/navigation' ;
5+ import { graphql } from '@/gql' ;
6+ import { useQuery } from '@tanstack/react-query' ;
77import {
88 Accordion ,
99 AccordionContent ,
@@ -18,8 +18,8 @@ import {
1818 Text ,
1919} from 'opub-ui' ;
2020
21- import { Icons } from '@/components/icons' ;
2221import { GraphQL } from '@/lib/api' ;
22+ import { Icons } from '@/components/icons' ;
2323
2424const datasetResourceQuery : any = graphql ( `
2525 query datasetResources($datasetId: UUID!) {
@@ -76,7 +76,7 @@ const Resources = () => {
7676 < Dialog . Trigger >
7777 < Button
7878 kind = "tertiary"
79- className = " text-secondaryOrange underline"
79+ className = " text-secondaryText underline"
8080 >
8181 View All Columns
8282 </ Button >
@@ -157,7 +157,7 @@ const Resources = () => {
157157 < Button
158158 kind = "tertiary"
159159 disabled = { ! previewData }
160- className = " text-secondaryOrange underline"
160+ className = " text-secondaryText underline"
161161 >
162162 Preview
163163 </ Button >
@@ -205,23 +205,23 @@ const Resources = () => {
205205 ( item : any , index : number ) => (
206206 < div
207207 key = { index }
208- className = "mt-5 flex flex-col gap-6 border-1 border-solid border-greyExtralight bg-surfaceDefault p-6 lg:mx-0"
208+ className = "mt-5 flex flex-col gap-6 border-1 border-solid border-greyExtralight bg-surfaceDefault p-4 lg:mx-0 lg:p-6 "
209209 >
210210 < div className = "flex flex-wrap justify-between gap-4" >
211211 < div className = "flex w-full flex-col gap-4 " >
212- < div className = " flex items-center justify-between gap-2" >
213- < Text variant = "headingMd" > { item . name } </ Text >
214- { item . fileDetails ?. format && (
215- < Format fileType = { item . fileDetails ?. format } />
216- ) }
212+ < div className = " flex flex-wrap items-center justify-between gap-2 lg:flex-nowrap" >
213+ < div className = "flex items-start gap-2 lg:items-center" >
214+ { item . fileDetails ?. format && (
215+ < Format fileType = { item . fileDetails ?. format } />
216+ ) }
217+ < Text variant = "headingMd" > { item . name } </ Text >
218+ </ div >
217219 </ div >
218- </ div >
219- </ div >
220- < Accordion type = "single" collapsible className = "w-full" >
220+ < Accordion type = "single" collapsible className = "w-full" >
221221 < AccordionItem value = "item-1" className = " border-none" >
222222 < div className = "flex flex-wrap items-center justify-end gap-4" >
223223 < AccordionTrigger className = "flex w-full flex-wrap items-center gap-2 p-0 hover:no-underline" >
224- < Text className = " text-secondaryOrange " >
224+ < Text className = " text-secondaryText " >
225225 { ' ' }
226226 View Details
227227 </ Text >
@@ -234,7 +234,7 @@ const Resources = () => {
234234 >
235235 < Button kind = "tertiary" >
236236 < div className = "flex gap-1" >
237- < Text className = " text-secondaryOrange" >
237+ < Text className = " text-primaryText" fontWeight = 'semibold' >
238238 { ' ' }
239239 Download
240240 </ Text >
@@ -259,6 +259,8 @@ const Resources = () => {
259259 </ AccordionContent >
260260 </ AccordionItem >
261261 </ Accordion >
262+ </ div >
263+ </ div >
262264 </ div >
263265 )
264266 ) }
0 commit comments