Skip to content

Commit

Permalink
fix(build): fix build error from button component (#8)
Browse files Browse the repository at this point in the history
* feat: implement color system

* feat: implement landing page content components

* feat: implement bottom CTA with global button component

* feat: implement footer

* refactor: refactor folder structure for build fix

* fix: fix build error from server component
  • Loading branch information
Bokdol11859 authored Feb 17, 2024
1 parent 566ca76 commit e894ebb
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 43 deletions.
2 changes: 1 addition & 1 deletion src/app/(landing)/_components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Logo from "@/components/logo/logo";
import Logo from "@/components/common/logo/logo";
import React from "react";

const Footer = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(landing)/_components/header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Logo from "@/components/logo/logo";
import Logo from "@/components/common/logo/logo";
import React from "react";

const Header = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(landing)/_components/intro.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LottiePlayer from "@/components/lottie-player/lottie-player";
import LottiePlayer from "@/components/common/lottie-player/lottie-player";
import React from "react";

const Intro = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(landing)/_components/monthly-dividend.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LottiePlayer from "@/components/lottie-player/lottie-player";
import LottiePlayer from "@/components/common/lottie-player/lottie-player";
import React from "react";

const MonthlyDividend = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(landing)/_components/sector-balanced.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LottiePlayer from "@/components/lottie-player/lottie-player";
import LottiePlayer from "@/components/common/lottie-player/lottie-player";
import React from "react";

const SectorBalanced = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(landing)/_components/target-user.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LottiePlayer from "@/components/lottie-player/lottie-player";
import LottiePlayer from "@/components/common/lottie-player/lottie-player";
import React from "react";

const TargetUser = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(landing)/_components/yearly-dividend.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import LottiePlayer from "@/components/lottie-player/lottie-player";
import LottiePlayer from "@/components/common/lottie-player/lottie-player";
import React from "react";

const YearlyDividend = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(landing)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import TargetUser from "./_components/target-user";
import YearlyDividend from "./_components/yearly-dividend";
import FAQ from "./_components/faq";
import Footer from "./_components/footer";
import { Button } from "@/components/button/button";
import { Button } from "@/components/common/button/button";

export default function Home() {
return (
Expand Down
13 changes: 13 additions & 0 deletions src/app/(main)/ticker/_components/content.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"use client";

import React from "react";
import TickerList from "./ticker-list";

const Content = React.memo(() => {
const handleClickTicker = React.useCallback((name: string) => {
console.log("name:", name);
}, []);
return <TickerList onClick={handleClickTicker} />;
});

export default Content;
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/app/ticker/page.tsx → src/app/(main)/ticker/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Drawer as DrawerPrimitive } from "@/components/ui/drawer";
import { TickerDrawer } from "./_components/ticker-drawer";
import Intro from "./_components/intro";
import Content from "./_components/content";
import { Drawer as DrawerPrimitive } from "@/components/ui/drawer";
import { TickerDrawer } from "./_components/ticker-drawer";

export default function TickerPage() {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DM_Sans } from "next/font/google";
import "./globals.css";
import React from "react";
import { GlobalProvider } from "./global-provider";
import NavigationBar from "@/components/navigation-bar/navigation-bar";
import NavigationBar from "@/components/common/navigation-bar/navigation-bar";
import { Toaster } from "@/components/ui/sonner";

const dm_sans = DM_Sans({ subsets: ["latin"], weight: ["400", "500", "600", "700"] });
Expand Down
14 changes: 0 additions & 14 deletions src/app/ticker/_components/content.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/components/common/Logo.tsx

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions src/components/common/navigation-bar.tsx

This file was deleted.

File renamed without changes.

0 comments on commit e894ebb

Please sign in to comment.