This commit is contained in:
Bastian Meissner 2020-09-08 18:26:45 +02:00
parent 8614b71e94
commit 759ceac608
2 changed files with 6 additions and 3 deletions

View file

@ -6,11 +6,10 @@ import Greeter from "./components/greeter";
import AppList from "./components/appList"; import AppList from "./components/appList";
import BookmarkList from "./components/bookmarkList"; import BookmarkList from "./components/bookmarkList";
import Settings from "./components/settings"; import Settings from "./components/settings";
import Imprint from "./components/imprint";
import selectedTheme from "./components/themeManager"; import selectedTheme from "./components/themeManager";
import Imprint from "./components/imprint";
const GlobalStyle = createGlobalStyle` const GlobalStyle = createGlobalStyle`
body { body {
background-color: ${selectedTheme.backgroundColor}; background-color: ${selectedTheme.backgroundColor};

View file

@ -87,9 +87,13 @@ const Imprint = () => {
imprintData: { name, address, phone, email, url, error }, imprintData: { name, address, phone, email, url, error },
} = useImprintData(); } = useImprintData();
useEffect(() => {
console.error(error);
}, [error]);
return ( return (
<> <>
{error ? ( {!error ? (
<ListContainer> <ListContainer>
<Hl>About</Hl> <Hl>About</Hl>
<ItemList> <ItemList>