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 { FC, useState } from "react";
|
||||||
import { PreLoader } from "./components/PreLoader";
|
import { PreLoader } from "./components/PreLoader";
|
||||||
import { buttonURL } from "./constants";
|
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import MainLayout from "./layouts/MainLayout";
|
import MainLayout from "./layouts/MainLayout";
|
||||||
import { AppRouter } from "./router";
|
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}`;
|
const classString = `waves-effect waves-light btn-${size} ${color}`;
|
||||||
return (
|
return (
|
||||||
<Link to={url}>
|
<Link to={url}>
|
||||||
<button
|
<button className={classString} onClick={handleClick}>
|
||||||
// className="waves-effect waves-light btn-small"
|
|
||||||
className={classString}
|
|
||||||
onClick={handleClick}
|
|
||||||
>
|
|
||||||
Random Recipe
|
Random Recipe
|
||||||
</button>
|
</button>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue