chore: initial commit with basic module federation setup in vite config
This commit is contained in:
2
src/features/auth/index.ts
Normal file
2
src/features/auth/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./lib";
|
||||
export * from "./ui";
|
||||
7
src/features/auth/lib/hocs/AuthGuard/AuthGuard.tsx
Normal file
7
src/features/auth/lib/hocs/AuthGuard/AuthGuard.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface Props {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export function AuthGuard({ children }: Props) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
1
src/features/auth/lib/hooks/useAuth/useAuth.ts
Normal file
1
src/features/auth/lib/hooks/useAuth/useAuth.ts
Normal file
@@ -0,0 +1 @@
|
||||
export function useAuth() {}
|
||||
2
src/features/auth/lib/index.ts
Normal file
2
src/features/auth/lib/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { useAuth } from "./hooks/useAuth/useAuth";
|
||||
export { AuthGuard } from "./hocs/AuthGuard/AuthGuard";
|
||||
5
src/features/auth/ui/LoginForm/LoginForm.tsx
Normal file
5
src/features/auth/ui/LoginForm/LoginForm.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
export function LoginForm() {
|
||||
return (
|
||||
<form>Login Form</form>
|
||||
);
|
||||
}
|
||||
5
src/features/auth/ui/RegisterForm/RegisterForm.tsx
Normal file
5
src/features/auth/ui/RegisterForm/RegisterForm.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
export function RegisterForm() {
|
||||
return (
|
||||
<form>Register Form</form>
|
||||
);
|
||||
}
|
||||
2
src/features/auth/ui/index.ts
Normal file
2
src/features/auth/ui/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export { LoginForm } from "./LoginForm/LoginForm";
|
||||
export { RegisterForm } from "./RegisterForm/RegisterForm";
|
||||
Reference in New Issue
Block a user