Skip to content

Commit

Permalink
Fixing typing and semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
lotif committed Feb 15, 2024
1 parent e04d3fd commit e04c003
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion florist/app/client_imports.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { useEffect } from "react";

function ClientImports() {
function ClientImports(): null {
useEffect(() => {
require("./assets/js/core/popper.min.js");
require("./assets/js/core/bootstrap.min.js");
Expand Down
20 changes: 11 additions & 9 deletions florist/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import "./assets/css/nucleo-icons.css"
import "./assets/css/nucleo-svg.css"
import "./assets/css/material-dashboard.css?v=3.0.0"
import "./assets/css/nucleo-icons.css";
import "./assets/css/nucleo-svg.css";
import "./assets/css/material-dashboard.css?v=3.0.0";

import Script from 'next/script';
import { Metadata } from "next";
import { ReactElement } from "react/React";
import Script from "next/script";
import { useEffect } from "react";

import Sidebar from "./sidebar"
import Sidebar from "./sidebar";
import ClientImports from './client_imports';

export const metadata = {
export const metadata: Metadata = {
title: "Florist",
}
};

export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
}): ReactElement {
return (
<html lang="en">
<head>
Expand Down Expand Up @@ -97,5 +99,5 @@ export default function RootLayout({

</body>
</html>
)
);
}
4 changes: 3 additions & 1 deletion florist/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default function Home() {
import { ReactElement } from "react/React";

export default function Home(): ReactElement {
return (
<span>Content goes here</span>
);
Expand Down
7 changes: 4 additions & 3 deletions florist/app/sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import logo_ct from "./assets/img/logo-ct.png"
import logo_ct from "./assets/img/logo-ct.png";

import Image from 'next/image'
import Image from "next/image";
import { ReactElement } from "react/React";

export default function Sidebar() {
export default function Sidebar(): ReactElement {
return (
<aside className="sidenav navbar navbar-vertical navbar-expand-xs border-0 border-radius-xl my-3 fixed-start ms-3 bg-gradient-dark" id="sidenav-main">
<div className="sidenav-header">
Expand Down

0 comments on commit e04c003

Please sign in to comment.