Replace FAQ Header Image

This commit is contained in:
Lucas Phang 2021-05-27 00:52:28 +00:00 committed by GitHub
parent cd8d12a0f0
commit ab5cf3e97e
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import Head from 'next/head';
import React from 'react';
import { GetServerSideProps } from 'next';
import { NAVIGATION, METADATA, CMS } from '../constants';
import { NAVIGATION, METADATA } from '../constants';
import { SideMenuItem } from '../state/navigation';
import { generateTitle, generateURL } from '../utils/metadata';
import { CmsApi } from '../services/cms';
@ -9,7 +9,7 @@ import { IFAQItem } from '../types/cms';
import { Accordion } from '../components/Accordion';
import { Contained } from '../components/Contained';
export const getServerSideProps: GetServerSideProps = async context => {
export const getServerSideProps: GetServerSideProps = async () => {
const cms = new CmsApi();
const { faqItems, total } = await cms.fetchFAQItems();
@ -35,7 +35,7 @@ function FAQ(props: Props) {
const pageURL = generateURL(
NAVIGATION.SIDE_MENU_ITEMS[SideMenuItem.FAQ].href,
);
const imagePathLocal = 'img/what_is_oxen.png';
const imagePathLocal = 'img/faq.png';
const imageURL = `${METADATA.OXEN_HOST_URL}/${imagePathLocal}`;
return (

BIN
public/img/faq.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 883 KiB