File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/components Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 11import React , { useState } from 'react' ;
2+ import { graphql } from '@/gql' ;
23import {
34 Button ,
45 Divider ,
@@ -13,9 +14,29 @@ import { Icons } from '@/components/icons';
1314
1415interface ImageProps {
1516 setType : any ;
17+ setImageId : any ;
18+ imageId : any ;
1619}
1720
18- const ChartsImage : React . FC < ImageProps > = ( { setType } ) => {
21+ const getResourceChartImageDetails : any = graphql ( `
22+ query resourceChartImage($filters: ResourceChartImageFilter) {
23+ resourceChartImages(filters: $filters) {
24+ id
25+ name
26+ description
27+ image {
28+ name
29+ path
30+ }
31+ }
32+ }
33+ ` ) ;
34+
35+ const ChartsImage : React . FC < ImageProps > = ( {
36+ setType,
37+ setImageId,
38+ imageId,
39+ } ) => {
1940 console . log ( setType ) ;
2041 const [ isSheetOpen , setIsSheetOpen ] = useState ( false ) ;
2142
You can’t perform that action at this time.
0 commit comments