This commit is contained in:
2024-06-17 18:19:05 +05:00
parent a46547d1fe
commit 6e4401219e
10 changed files with 34 additions and 37 deletions
+1 -3
View File
@@ -254,8 +254,6 @@ function DashboardPage() {
async function getSchedules() {
if (!company || !selectedBuild) return;
console.log("selectedBuild.id", selectedBuild.id);
const result: any[] = await api
.get(`companies/${company.id}/builds/${selectedBuild.id}/schedules`)
.json();
@@ -300,7 +298,7 @@ function DashboardPage() {
useEffect(() => {
if (!company || !selectedBuild) return;
console.log("selectedBuild", selectedBuild);
getSchedules();
getManagers();
}, [selectedBuild]);
+5 -5
View File
@@ -1,8 +1,8 @@
/* eslint-disable react-hooks/exhaustive-deps */
/* eslint-disable @typescript-eslint/no-explicit-any */
import { useEffect, useRef, useState } from "react";
import { useEffect, useState } from "react";
import ky from "ky";
import ReCAPTCHA from "react-google-recaptcha";
// import ReCAPTCHA from "react-google-recaptcha";
import Form from "../components/Form";
import Label from "../components/Label";
import Input from "../components/Input";
@@ -13,7 +13,7 @@ import useAuthStore from "../stores/useAuthStore";
function LoginPage() {
const [username, setUsername] = useState<string>();
const [password, setPassword] = useState<string>();
const recaptchaRef = useRef(null);
// const recaptchaRef = useRef(null);
const [accessToken, setAccessToken, setUser] = useAuthStore((state) => [
state.accessToken,
state.setAccessToken,
@@ -79,11 +79,11 @@ function LoginPage() {
handleChange={(value) => setPassword(value)}
/>
</div>
<ReCAPTCHA
{/* <ReCAPTCHA
ref={recaptchaRef}
sitekey="6LdKPH4oAAAAAM8cyMoCkmNvbnBbe2UIrwRwQ425"
className="mt-3"
/>
/> */}
<Button
type="submit"
size="medium"