From e5acf6cec8e593f1f3e8996091e04023e09cd9aa Mon Sep 17 00:00:00 2001 From: Ruidy Date: Mon, 29 Mar 2021 12:07:41 +0200 Subject: [PATCH] move state over --- src/App.tsx | 1 - src/components/RandomButton.tsx | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index ab0a623..a4d84be 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,5 @@ import { FC, useState } from "react"; import { PreLoader } from "./components/PreLoader"; -import { buttonURL } from "./constants"; import "./index.css"; import MainLayout from "./layouts/MainLayout"; import { AppRouter } from "./router"; diff --git a/src/components/RandomButton.tsx b/src/components/RandomButton.tsx index d2657d5..68dfe64 100644 --- a/src/components/RandomButton.tsx +++ b/src/components/RandomButton.tsx @@ -5,11 +5,7 @@ export const RandomButton = ({ url, size = "large", handleClick, color }) => { const classString = `waves-effect waves-light btn-${size} ${color}`; return ( -