mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-12 13:26:45 +00:00
move state over
This commit is contained in:
parent
f72c967461
commit
e5acf6cec8
2 changed files with 1 additions and 6 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue