diff --git a/src/components/grid.tsx b/src/components/grid.tsx index 01877134..1bb34ffa 100644 --- a/src/components/grid.tsx +++ b/src/components/grid.tsx @@ -127,7 +127,12 @@ class GridTable extends Component { } } -export default class Grid extends Component { +interface GridProps { + data: object; + psych_data: object; +} + +export default class Grid extends Component { state = { value: '', checked_boxes: ['alcohol', 'cannabis', 'cocaine', 'ketamine'], @@ -200,9 +205,8 @@ export default class Grid extends Component {
{item.displayname}
{item.img_capt} diff --git a/src/pages/index.astro b/src/pages/index.astro index c43de2df..9d283fd9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -17,7 +17,7 @@ for (let sub of substances) { slug: sub.slug, aka: sub.data.aka, fam: sub.data.family_members, - img: await getImage({ src: sub.data.image_location, width: 220 }), + img: sub.data.image_location, img_capt: sub.data.image_caption, }; preact_data[sub.slug] = item; @@ -106,6 +106,7 @@ for (let sub of substances) { Low Risk No Synergy + + + - -