feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -26,10 +26,11 @@ import React, {
|
||||
} from 'react';
|
||||
import { Routes, Route, Navigate, useNavigate } from 'react-router-dom';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Button } from '@douyinfe/semi-ui';
|
||||
import { Button } from '@/components/ui';
|
||||
import OrgSideSheet from './components/OrgSideSheet';
|
||||
import { Menu } from 'lucide-react';
|
||||
import { StatusContext } from '../../context/Status';
|
||||
import { useMarquee } from '../../hooks/common/useMarquee';
|
||||
import { UserContext } from '../../context/User';
|
||||
import { API } from '../../helpers/api';
|
||||
import { showError } from '../../helpers';
|
||||
@@ -140,7 +141,7 @@ const Organization = () => {
|
||||
const [isProjectManager, setIsProjectManager] = useState(false);
|
||||
const [projectScopeLoaded, setProjectScopeLoaded] = useState(false);
|
||||
|
||||
const hasMarquee = !!statusState?.status?.marquee_content?.trim();
|
||||
const { visible: hasMarquee } = useMarquee();
|
||||
const isAdmin =
|
||||
orgRole === 'owner' || orgRole === 'admin' || orgRole === 'super_admin';
|
||||
const orgConfig = useMemo(
|
||||
@@ -407,14 +408,14 @@ const Organization = () => {
|
||||
</p>
|
||||
<div className='flex gap-3 justify-center'>
|
||||
<button
|
||||
className='px-4 py-2 rounded-md border border-[var(--semi-color-border)]'
|
||||
className='px-4 py-2 rounded-md border border-[var(--ui-color-border)]'
|
||||
onClick={() => fetchOrgInfo()}
|
||||
>
|
||||
{t('刷新状态')}
|
||||
</button>
|
||||
{!isOrgUser && (
|
||||
<button
|
||||
className='px-4 py-2 rounded-md bg-[var(--semi-color-primary)] text-white'
|
||||
className='px-4 py-2 rounded-md bg-[var(--ui-color-primary)] text-white'
|
||||
onClick={() =>
|
||||
navigateRef.current('/user-center/dashboard', {
|
||||
replace: true,
|
||||
@@ -437,7 +438,7 @@ const Organization = () => {
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`org-center flex flex-col md:flex-row h-screen overflow-hidden bg-[var(--surface-bg-base)] transition-colors duration-300 ${hasMarquee ? 'pt-[96px] sm:pt-[104px]' : 'pt-14 sm:pt-16'}`}
|
||||
className={`org-center flex flex-col md:flex-row h-screen overflow-hidden bg-[var(--surface-bg-base)] ${hasMarquee ? 'pt-[91px] md:pt-[107px]' : 'pt-14 md:pt-[72px]'}`}
|
||||
>
|
||||
{/* Sidebar - desktop only */}
|
||||
<div className='hidden md:block flex-shrink-0 h-full'>
|
||||
|
||||
Reference in New Issue
Block a user