Skip to content

Commit

Permalink
change stats and @ route
Browse files Browse the repository at this point in the history
  • Loading branch information
khanheric2003 committed Feb 11, 2024
1 parent 54dd3cc commit 5973cf2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createBrowserRouter, RouterProvider } from "react-router-dom";

// routes

import ButtonTestRoute from "./routes/ButtonTestRoute";
import ButtonTestRoute from "@/routes/ButtonTestRoute";

import Test from "./routes/Test";
import DropdownItem from "./components/DropdownItem";
Expand Down
6 changes: 3 additions & 3 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
text?: string;
rounded?: boolean;
fill?: boolean;
status?: boolean;
status?: string;
fontSize?: string;
}

Expand All @@ -17,13 +17,13 @@ const Button: React.FC<ButtonProps> = ({
onClick = () => console.log("Clicked"),
rounded = false,
fill = true,
status = true,
status = "enabled",
fontSize = "1em",
}) => {
const buttonRef = useRef<HTMLButtonElement>(null);

const buttonClassName = `flex flex-row items-center justify-center p-4 ${
!status
status === "disabled"
? "bg-neutrals-light-200 text-gray-400"
: fill
? "bg-primary-main text-white hover:bg-primary-light active:bg-primary-dark "
Expand Down
30 changes: 15 additions & 15 deletions src/routes/ButtonTestRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function ButtonTestRoute() {
text={"Button"}
rounded={false}
fill={true}
status={false}
status={"disabled"}
icon={true}
/>
</div>
Expand All @@ -25,7 +25,7 @@ function ButtonTestRoute() {
text={"Button"}
rounded={false}
fill={true}
status={false}
status={"disabled"}
icon={false}
/>
</div>
Expand All @@ -37,7 +37,7 @@ function ButtonTestRoute() {
text={"Button"}
rounded={false}
fill={true}
status={false}
status={"disabled"}
icon={true}
/>
</div>
Expand All @@ -49,7 +49,7 @@ function ButtonTestRoute() {
text={"Button"}
rounded={false}
fill={true}
status={false}
status={"disabled"}
icon={false}
/>
</div>
Expand All @@ -61,7 +61,7 @@ function ButtonTestRoute() {
text={""}
rounded={false}
fill={true}
status={false}
status={"disabled"}
icon={true}
/>
</div>
Expand All @@ -73,7 +73,7 @@ function ButtonTestRoute() {
text={""}
rounded={true}
fill={true}
status={false}
status={"disabled"}
icon={true}
/>
</div>
Expand All @@ -87,7 +87,7 @@ function ButtonTestRoute() {
text={"Button"}
rounded={false}
fill={true}
status={true}
status={"enabled"}
icon={true}
/>
</div>
Expand All @@ -99,7 +99,7 @@ function ButtonTestRoute() {
text={"Button"}
rounded={false}
fill={true}
status={true}
status={"enabled"}
icon={false}
/>
</div>
Expand All @@ -111,7 +111,7 @@ function ButtonTestRoute() {
text={"Button"}
rounded={false}
fill={true}
status={true}
status={"enabled"}
icon={true}
/>
</div>
Expand All @@ -123,7 +123,7 @@ function ButtonTestRoute() {
text={""}
rounded={false}
fill={true}
status={true}
status={"enabled"}
icon={true}
/>
</div>
Expand All @@ -135,7 +135,7 @@ function ButtonTestRoute() {
text={""}
rounded={true}
fill={true}
status={true}
status={"enabled"}
icon={true}
/>
</div>
Expand All @@ -149,7 +149,7 @@ function ButtonTestRoute() {
text={"Button"}
rounded={false}
fill={false}
status={true}
status={"enabled"}
icon={true}
/>
</div>
Expand All @@ -161,7 +161,7 @@ function ButtonTestRoute() {
text={"Button"}
rounded={false}
fill={false}
status={true}
status={"enabled"}
icon={false}
/>
</div>
Expand All @@ -173,7 +173,7 @@ function ButtonTestRoute() {
text={""}
rounded={false}
fill={false}
status={true}
status={"enabled"}
icon={true}
/>
</div>
Expand All @@ -185,7 +185,7 @@ function ButtonTestRoute() {
text={""}
rounded={true}
fill={false}
status={true}
status={"enabled"}
icon={true}
/>
</div>
Expand Down

0 comments on commit 5973cf2

Please sign in to comment.