Skip to content

Commit

Permalink
move AnimatedBackground to main app
Browse files Browse the repository at this point in the history
  • Loading branch information
lotmek committed Nov 7, 2023
1 parent 861b63b commit ac3d3c0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions webapp/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { AnimatedBackground } from "./components/AnimatedBackground";
import ErrorBoundary from "./error/error-boundary/error-boundary";
import AppRoutes from "./router";

export const AppComponent = () => {
return (
<ErrorBoundary>
<AnimatedBackground />
<AppRoutes />
</ErrorBoundary>
);
Expand Down
2 changes: 0 additions & 2 deletions webapp/src/features/create/CreateCardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ import "react";
import "twin.macro";
import { Navbar } from "../../components/Navbar";
import { PageContainer } from "../../components/PageContainer";
import { AnimatedBackground } from "../../components/AnimatedBackground";
import { CreateCard } from "./CreateCard";

export const CreateCardPage = () => {
return (
<PageContainer tw="bg-tertiary">
<AnimatedBackground />
<Navbar />
<CreateCard />
</PageContainer>
Expand Down
2 changes: 0 additions & 2 deletions webapp/src/features/home/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import "twin.macro";
import { Navbar } from "../../components/Navbar";
import { PageContainer } from "../../components/PageContainer";
import { Home } from "./Home";
import { AnimatedBackground } from "../../components/AnimatedBackground";

export const HomePage = () => {
return (
<PageContainer tw="bg-tertiary">
<AnimatedBackground />
<Navbar />
<Home />
</PageContainer>
Expand Down
2 changes: 0 additions & 2 deletions webapp/src/features/review/ReviewCardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import "twin.macro";
import { Navbar } from "../../components/Navbar";
import { PageContainer } from "../../components/PageContainer";
import { ReviewCard } from "./ReviewCard";
import { AnimatedBackground } from "../../components/AnimatedBackground";

export const ReviewCardPage = () => {
return (
<PageContainer tw="bg-tertiary">
<AnimatedBackground />
<Navbar />
<ReviewCard />
</PageContainer>
Expand Down

0 comments on commit ac3d3c0

Please sign in to comment.