mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, { ReactNode, useMemo } from "react";
|
||||
import styled from "styled-components";
|
||||
import { createTheme } from "@/theme/create";
|
||||
import { ThemeProvider } from "@/theme/provider";
|
||||
import React, { ReactNode, useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { createTheme } from '@/theme/create';
|
||||
import { ThemeProvider } from '@/theme/provider';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
background: ${({ theme }) => theme.colors.background};
|
||||
@@ -25,7 +25,7 @@ const BackgroundWrapper = styled.div<{
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
opacity: 0.2;
|
||||
${({ image }) => (image ? `background-image: url(${image});` : "")}
|
||||
${({ image }) => (image ? `background-image: url(${image});` : '')}
|
||||
`;
|
||||
|
||||
const Content = styled.div`
|
||||
@@ -50,7 +50,7 @@ const Sheet: React.FC<Props> = ({ color, background, children }) => {
|
||||
createTheme({
|
||||
baseColor: color,
|
||||
}),
|
||||
[color]
|
||||
[color],
|
||||
);
|
||||
return (
|
||||
<ThemeProvider theme={theme}>
|
||||
|
||||
Reference in New Issue
Block a user