move state over

This commit is contained in:
Ruidy 2021-03-29 12:07:41 +02:00
parent f72c967461
commit e5acf6cec8
2 changed files with 1 additions and 6 deletions

View file

@ -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";

View file

@ -5,11 +5,7 @@ export const RandomButton = ({ url, size = "large", handleClick, color }) => {
const classString = `waves-effect waves-light btn-${size} ${color}`;
return (
<Link to={url}>
<button
// className="waves-effect waves-light btn-small"
className={classString}
onClick={handleClick}
>
<button className={classString} onClick={handleClick}>
Random Recipe
</button>
</Link>