chore: code cleaning (#21)

This commit is contained in:
Riccardo Senica
2024-11-23 09:13:15 +01:00
committed by GitHub
parent c4f03feffe
commit c300b2501d
31 changed files with 903 additions and 872 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import Footer from './components/Footer';
import { Footer } from './components/Footer';
interface TemplateProps {
title: string;
@@ -7,11 +7,11 @@ interface TemplateProps {
variant?: string;
}
export default function Template({
export const Template = ({
title,
body,
variant = 'default'
}: TemplateProps) {
}: TemplateProps) => {
const isNewsletter = variant === 'newsletter';
return (
@@ -74,4 +74,4 @@ export default function Template({
<Footer />
</div>
);
}
};