From d94bf74663f070b1565c9d98c99a3b6c92483b50 Mon Sep 17 00:00:00 2001 From: mrfry Date: Sat, 8 Apr 2023 18:27:07 +0200 Subject: [PATCH] make.sh more visible error, header fix --- make.sh | 2 +- src/components/header.jsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/make.sh b/make.sh index 496c8ee..5f7a09c 100755 --- a/make.sh +++ b/make.sh @@ -3,7 +3,7 @@ scriptPath=$(dirname -- "${0}") domainPath="${scriptPath}/../../data/domain" if [ ! -f "${domainPath}" ]; then - echo "${domainPath} does not exist!" + echo -e "\033[0;41m${domainPath} does not exist!\033[0m" exit 1 fi domain=$(cat "${domainPath}") diff --git a/src/components/header.jsx b/src/components/header.jsx index 29a240f..88ec388 100644 --- a/src/components/header.jsx +++ b/src/components/header.jsx @@ -2,6 +2,8 @@ import React from 'react' import Head from 'next/head' import { useQueryClient } from 'react-query' +import constants from '../constants' + export default function Header(props) { const { title } = props const queryClient = useQueryClient()