Skip to content
Snippets Groups Projects
Commit 13b60470 authored by Manoa Harinjo's avatar Manoa Harinjo
Browse files

add logo in stats

parent 811265b9
Branches feat/stats
No related tags found
No related merge requests found
import { graphql, useStaticQuery } from "gatsby"
import React from "react"
import { twMerge } from "tailwind-merge"
import { Logo } from "@onegeo-suite/gatsby-theme-onegeo"
interface Props {
children?: React.ReactNode
......@@ -23,6 +24,16 @@ const Stats = (props: Props) => {
value
description
sort
image {
imageFile {
childImageSharp {
gatsbyImageData
}
name
publicURL
}
id
}
}
}
}
......@@ -83,6 +94,12 @@ const Stats = (props: Props) => {
) : (
<></>
)}
{stat.image && (
<Logo
image={stat.image.imageFile}
className="my-6"
/>
)}
<div
className={twMerge(
"stat-title text-base-100 text-2xl",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment