This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="2.0" | |
xmlns:html="http://www.w3.org/TR/REC-html40" | |
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" | |
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> | |
<xsl:template match="/"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = ({ config }) => { | |
// Transpile Gatsby module because Gatsby includes un-transpiled ES6 code. | |
config.module.rules[0].exclude = [/node_modules\/(?!(gatsby)\/)/] | |
// use installed babel-loader which is v8.0-beta (which is meant to work with @babel/core@7) | |
config.module.rules[0].use[0].loader = require.resolve('babel-loader') | |
// use @babel/preset-react for JSX and env (instead of staged presets) | |
config.module.rules[0].use[0].options.presets = [ | |
require.resolve('@babel/preset-react'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState, useEffect } from "react"; | |
import axios from "axios"; | |
const fetchDataCall = async ({ api }) => { | |
let apiReturn = await axios | |
.get(api) | |
.then(async function(response) { | |
return response; | |
}) | |
.catch(function(error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gravity Forms Reset Styles | |
// https://gist.github.com/forgeandsmith/8048759 | |
// | |
// Some fields have been removed, as they were not needed. | |
// See the above link for future reference | |
.gfield_required { | |
display: none; | |
} |