feature/syasya/testlayout #8
@ -1,4 +1,4 @@
 | 
			
		||||
NEXT_PUBLIC_API_BASE_URL="http://localhost:8000"
 | 
			
		||||
FASTAPI_URL="http://localhost:8000"
 | 
			
		||||
INTERNAL_API_BASE_URL="http://localhost:3005"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,30 +1,25 @@
 | 
			
		||||
'use client';
 | 
			
		||||
import ProviderComponent from '@/components/layouts/provider-component';
 | 
			
		||||
import 'react-perfect-scrollbar/dist/css/styles.css';
 | 
			
		||||
import '../styles/tailwind.css';
 | 
			
		||||
import { Metadata } from 'next';
 | 
			
		||||
import { Nunito } from 'next/font/google';
 | 
			
		||||
// app/layout.tsx
 | 
			
		||||
import type { Metadata } from "next";
 | 
			
		||||
import ProviderComponent from "@/components/layouts/provider-component";
 | 
			
		||||
import "react-perfect-scrollbar/dist/css/styles.css";
 | 
			
		||||
import "../styles/tailwind.css";
 | 
			
		||||
import { Nunito } from "next/font/google";
 | 
			
		||||
import { Exo_2 } from "next/font/google";
 | 
			
		||||
 | 
			
		||||
const exo2 = Exo_2({
 | 
			
		||||
  subsets: ["latin"],
 | 
			
		||||
  variable: "--font-exo2",
 | 
			
		||||
  weight: ["200", "400"],
 | 
			
		||||
});
 | 
			
		||||
const exo2 = Exo_2({ subsets: ["latin"], variable: "--font-exo2", weight: ["200", "400"] });
 | 
			
		||||
const nunito = Nunito({ weight: ["400","500","600","700","800"], subsets: ["latin"], display: "swap", variable: "--font-nunito" });
 | 
			
		||||
 | 
			
		||||
const nunito = Nunito({
 | 
			
		||||
    weight: ['400', '500', '600', '700', '800'],
 | 
			
		||||
    subsets: ['latin'],
 | 
			
		||||
    display: 'swap',
 | 
			
		||||
    variable: '--font-nunito',
 | 
			
		||||
});
 | 
			
		||||
export const metadata: Metadata = {
 | 
			
		||||
  title: "Rooftop Meter",
 | 
			
		||||
  icons: { icon: "/favicon.png" }, // or "/favicon.ico"
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
 | 
			
		||||
  return (
 | 
			
		||||
        <html lang="en">
 | 
			
		||||
            <body className={exo2.variable}>
 | 
			
		||||
    <html lang="en" className={`${exo2.variable} ${nunito.variable}`}>
 | 
			
		||||
      <body>
 | 
			
		||||
        <ProviderComponent>{children}</ProviderComponent>
 | 
			
		||||
      </body>
 | 
			
		||||
    </html>
 | 
			
		||||
    )
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -10,7 +10,7 @@ export interface TimeSeriesResponse {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const API_BASE_URL =
 | 
			
		||||
  process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://127.0.0.1:8000";
 | 
			
		||||
  process.env.FASTAPI_URL ?? "http://127.0.0.1:8000";
 | 
			
		||||
 | 
			
		||||
export const crmapi = {
 | 
			
		||||
  getProjects: async () => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user