Skip to content

Commit

Permalink
refactor(app): 调整认证页面和设置页面的 Saas 相关组件显示逻辑
Browse files Browse the repository at this point in the history
- 在 AuthPage 组件中注释掉了 Saas 相关的 IconButton
- 在 Settings 组件中注释掉了 saasStartComponent 的渲染
- 调整了 AuthPage 中 TopBanner 组件的 isVisible 初始值为 false
  • Loading branch information
softxx committed Nov 29, 2024
1 parent 47a8824 commit 109ba70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/components/auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,20 @@ export function AuthPage() {
type="primary"
onClick={goChat}
/>
<IconButton
{/* <IconButton
text={Locale.Auth.SaasTips}
onClick={() => {
goSaas();
}}
/>
/> */}
</div>
</div>
);
}

function TopBanner() {
const [isHovered, setIsHovered] = useState(false);
const [isVisible, setIsVisible] = useState(true);
const [isVisible, setIsVisible] = useState(false);
const isMobile = useMobileScreen();
useEffect(() => {
// 检查 localStorage 中是否有标记
Expand Down
2 changes: 1 addition & 1 deletion app/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ export function Settings() {
</List>

<List id={SlotID.CustomModel}>
{saasStartComponent}
{/* {saasStartComponent} */}
{accessCodeComponent}

{!accessStore.hideUserApiKey && (
Expand Down

0 comments on commit 109ba70

Please sign in to comment.