diff --git a/package.json b/package.json
index 14f88a9c..c0612c10 100644
--- a/package.json
+++ b/package.json
@@ -35,18 +35,18 @@
"dms2dec": "^1.1.0",
"fast-exif": "^1.0.1",
"fraction.js": "^4.0.12",
- "gatsby": "^2.17.5",
+ "gatsby": "^2.17.6",
"gatsby-image": "^2.2.30",
"gatsby-plugin-catch-links": "^2.1.15",
"gatsby-plugin-feed": "^2.3.19",
"gatsby-plugin-lunr": "^1.5.2",
- "gatsby-plugin-manifest": "^2.2.24",
+ "gatsby-plugin-manifest": "^2.2.25",
"gatsby-plugin-matomo": "^0.7.2",
"gatsby-plugin-meta-redirect": "^1.1.1",
"gatsby-plugin-offline": "^3.0.17",
"gatsby-plugin-react-helmet": "^3.1.13",
"gatsby-plugin-sass": "^2.1.20",
- "gatsby-plugin-sharp": "^2.2.33",
+ "gatsby-plugin-sharp": "^2.2.34",
"gatsby-plugin-sitemap": "^2.2.19",
"gatsby-plugin-svgr": "^2.0.2",
"gatsby-plugin-typescript": "^2.1.15",
@@ -58,9 +58,9 @@
"gatsby-remark-images": "^3.1.28",
"gatsby-remark-smartypants": "^2.1.14",
"gatsby-remark-vscode": "^1.2.0",
- "gatsby-source-filesystem": "^2.1.34",
+ "gatsby-source-filesystem": "^2.1.35",
"gatsby-source-graphql": "^2.1.21",
- "gatsby-transformer-remark": "^2.6.31",
+ "gatsby-transformer-remark": "^2.6.32",
"gatsby-transformer-sharp": "^2.3.1",
"graphql": "^14.5.8",
"intersection-observer": "^0.7.0",
diff --git a/src/components/atoms/Exif.tsx b/src/components/atoms/Exif.tsx
index 83f9cdea..bd53e77e 100644
--- a/src/components/atoms/Exif.tsx
+++ b/src/components/atoms/Exif.tsx
@@ -1,7 +1,7 @@
import React from 'react'
import ExifMap from './ExifMap'
import styles from './Exif.module.scss'
-import { Exif as ExifMeta } from '../../@types/Post'
+import { Exif as ExifMeta } from '../../@types/Image'
export default function Exif({ exif }: { exif: ExifMeta }) {
const { iso, model, fstop, shutterspeed, focalLength, exposure, gps } = exif
diff --git a/src/components/molecules/Web3Donation/Alerts.tsx b/src/components/molecules/Web3Donation/Alerts.tsx
index dad4359b..2c2aea7b 100644
--- a/src/components/molecules/Web3Donation/Alerts.tsx
+++ b/src/components/molecules/Web3Donation/Alerts.tsx
@@ -16,44 +16,34 @@ export const alertMessages = (
success: 'Confirmed. You are awesome, thanks!'
})
-export default function Alerts({
- transactionHash,
- message
-}: {
- transactionHash: string | null
- message: { text?: string; status?: string } | null
-}) {
- const constructMessage = () => {
- let messageOutput
+interface AlertProps {
+ transactionHash: string
+ message?: { text?: string; status?: string }
+}
- if (transactionHash) {
- messageOutput =
- message &&
- message.text +
- '
' +
- alertMessages(null, transactionHash).transaction
- } else {
- messageOutput = message && message.text
- }
+const constructMessage = (
+ transactionHash: string,
+ message?: { text?: string }
+) =>
+ transactionHash
+ ? message &&
+ message.text + '
' + alertMessages(null, transactionHash).transaction
+ : message && message.text
- return messageOutput
- }
-
- const classes = () => {
- const { status } = message
-
- if (status === 'success') {
- return styles.success
- } else if (status === 'error') {
- return styles.error
- }
- return styles.alert
- }
+const classes = (status: string) =>
+ status === 'success'
+ ? styles.success
+ : status === 'error'
+ ? styles.error
+ : styles.alert
+export default function Alerts({ transactionHash, message }: AlertProps) {
return (
{text}
- > -) +interface ActionProps { + title: string + text: string + url?: string + onClick?(): void +} -const ActionTwitter = ({ slug }: { slug: string }) => { - const { siteUrl } = useSiteMetadata() +const Icon = ({ text }: { text: string }) => + text.includes('GitHub') ? ( +{text}
) } -const ActionCrypto = ({ toggleModal }: { toggleModal(): void }) => ( - -) - -const ActionGitHub = ({ githubLink }: { githubLink: string }) => ( - -