Skip to content

Commit

Permalink
missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
bumi committed Jan 23, 2024
1 parent 059a543 commit f10c127
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions frontend/src/components/ConnectButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import Loading from "src/components/Loading";

type ConnectButtonProps = {
isConnecting: boolean;
};

export default function ConnectButton({ isConnecting }: ConnectButtonProps) {
return (
<button
type="submit"
className={`mt-4 inline-flex w-full gap-2 ${
isConnecting ? "bg-gray-300 dark:bg-gray-700" : "bg-purple-700"
} cursor-pointer items-center justify-center rounded-md px-5 py-3 font-medium text-white shadow transition duration-150 hover:bg-purple-900 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 dark:text-neutral-200`}
disabled={isConnecting}
>
{isConnecting ? (
<>
<Loading /> Connecting...
</>
) : (
<>Connect</>
)}
</button>
);
}
2 changes: 1 addition & 1 deletion frontend/src/screens/Setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function Setup() {
}),
});

navigate("/apps");
navigate("/");
} catch (error) {
handleRequestError("Failed to connect", error);
} finally {
Expand Down

0 comments on commit f10c127

Please sign in to comment.