diff --git a/src/components/Inputs.tsx b/src/components/Inputs.tsx index e52a8c8..6bd0114 100644 --- a/src/components/Inputs.tsx +++ b/src/components/Inputs.tsx @@ -1,4 +1,4 @@ -import { createRef, InputHTMLAttributes, useState } from "react" +import { createRef, HTMLAttributes, InputHTMLAttributes, useState } from "react" import { overrideTailwindClasses } from '../general' import { SVGEye } from "./Icons" @@ -73,4 +73,24 @@ export function InputPassword({ invalid, ...props }: InputProps) { ) +} + +interface ButtonProps extends HTMLAttributes { } + +export function Button({ children, ...props }: ButtonProps) { + return ( + + ) } \ No newline at end of file diff --git a/src/pages/Layout.tsx b/src/pages/Layout.tsx index 19023ba..ec1e796 100644 --- a/src/pages/Layout.tsx +++ b/src/pages/Layout.tsx @@ -1,6 +1,7 @@ import { Outlet, Navigate, NavLink } from 'react-router-dom' import { isLoggedIn, LoginState, usePersistentState } from '../authorization' import { SVGHamburger } from '../components/Icons' +import { Button } from '../components/Inputs' function SLink({ to, children, important }: { to: string, @@ -40,20 +41,9 @@ export function Layout() { bg-gray-700 text-gray-400 ${collapsed ? "w-14" : "w-48"} `}> -