touchstudy-core 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const NotFound: FC;
3
+ export default NotFound;
@@ -0,0 +1,10 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ interface Props {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ centered?: boolean;
6
+ title: string;
7
+ size?: "xs" | "lg" | "xl";
8
+ }
9
+ declare const CommonDialog: FC<Props & PropsWithChildren>;
10
+ export default CommonDialog;
@@ -0,0 +1,12 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ text: string;
4
+ cancelText?: string;
5
+ okText?: string;
6
+ onConfirm: () => void;
7
+ open: boolean;
8
+ toggle: () => void;
9
+ isDelete?: boolean;
10
+ }
11
+ export declare const ConfirmDialog: FC<Props>;
12
+ export {};
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ declare const Loading: FC;
3
+ export default Loading;
@@ -0,0 +1,8 @@
1
+ import { FC } from "react";
2
+ interface Props {
3
+ currentPage: number;
4
+ totalPage: number;
5
+ onChangePage: (page: number) => void;
6
+ }
7
+ declare const CustomPagination: FC<Props>;
8
+ export default CustomPagination;
@@ -1 +1,2 @@
1
1
  export declare const getGoogleClientId: () => Promise<import("axios").AxiosResponse<any, any>>;
2
+ export declare const apiLoginGoogle: (body: any) => Promise<import("axios").AxiosResponse<any, any>>;
@@ -7,14 +7,11 @@ declare type LoginInfo = {
7
7
  };
8
8
  declare const useLogin: () => {
9
9
  defaultInfo: LoginInfo;
10
- userLogin: (_data: any) => Promise<void>;
11
10
  openLogin: boolean;
12
11
  toggle: () => void;
13
12
  isShowPassword: boolean;
14
13
  setIsShowPassword: import("react").Dispatch<import("react").SetStateAction<boolean>>;
15
14
  infoUser: any;
16
15
  setInfoUser: import("react").Dispatch<any>;
17
- googleClientId: string;
18
- googleRecaptchaId: string;
19
16
  };
20
17
  export default useLogin;
@@ -1,10 +1,7 @@
1
- import React from "react";
2
- interface loginProps {
3
- isLogin?: boolean;
4
- isForgotPassword?: boolean;
5
- isResetPassword?: boolean;
6
- isLoginTwoFactor?: boolean;
7
- isCreatePassword?: boolean;
1
+ import { FC } from "react";
2
+ import { INavigateProps } from "../../../utils/types";
3
+ interface Props {
4
+ isTeacher?: boolean;
8
5
  }
9
- declare const Login: (_props: loginProps) => React.JSX.Element;
6
+ declare const Login: FC<INavigateProps & Props>;
10
7
  export default Login;
@@ -1,7 +1,8 @@
1
1
  import { FC } from "react";
2
+ import { INavigateProps } from "../../../../utils/types";
2
3
  interface Props {
3
4
  defaultInfo?: any;
4
- userLogin?: any;
5
+ isTeacher?: boolean;
5
6
  }
6
- declare const BlockLogin: FC<Props>;
7
+ declare const BlockLogin: FC<Props & INavigateProps>;
7
8
  export default BlockLogin;