docs: add comments to the src/components directory
This commit is contained in:
@@ -1,11 +1,30 @@
|
||||
/*
|
||||
* @Author: ZhaoYing
|
||||
* @Date: 2026-02-02 15:13:55
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-02-02 15:52:17
|
||||
*/
|
||||
/**
|
||||
* NoAuthLayout Component
|
||||
*
|
||||
* A minimal layout wrapper for public pages that don't require authentication.
|
||||
* Provides a simple container without navigation UI or authentication checks.
|
||||
*
|
||||
* @component
|
||||
*/
|
||||
|
||||
import { Outlet } from 'react-router-dom';
|
||||
import { type FC } from 'react';
|
||||
|
||||
// 基础布局组件,用于展示内容并保留用户信息获取功能
|
||||
/**
|
||||
* No-authentication layout component for public pages.
|
||||
* Renders child routes in a simple full-size container without any auth requirements.
|
||||
*/
|
||||
const NoAuthLayout: FC = () => {
|
||||
|
||||
return (
|
||||
<div className="rb:relative rb:h-full rb:w-full">
|
||||
{/* Render public pages without authentication */}
|
||||
<Outlet />
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user