构建报错已经改掉了
This commit is contained in:
@@ -805,7 +805,7 @@ export function App() {
|
||||
function renderPage() {
|
||||
switch (page) {
|
||||
case "dashboard":
|
||||
return <Dashboard products={products} projects={projects} productTotal={productTotal} projectTotal={projectTotal} billing={billing} userName={currentUser.username} loading={!dataLoaded} navigate={navigate} onCreateProduct={(payload) => action(() => api.createProduct(payload), "")} />;
|
||||
return <Dashboard products={products} projects={projects} productTotal={productTotal} projectTotal={projectTotal} billing={billing} userName={currentUser.username} loading={!dataLoaded} navigate={navigate} />;
|
||||
case "products":
|
||||
return (
|
||||
<ProductsPage
|
||||
@@ -984,7 +984,7 @@ export function App() {
|
||||
case "settingsNotify":
|
||||
return <SettingsPage user={currentUser} team={currentTeam} initialSection="notify" preferences={preferences} sessions={sessions} onSavePreferences={savePreferences} onRevokeSession={revokeSession} onRevokeOthers={revokeOtherSessions} onSaveProfile={saveProfile} onChangePassword={changeOwnPassword} onUploadAvatar={uploadOwnAvatar} onResetAvatar={resetOwnAvatar} onNotify={(text) => setNotice({ type: "success", text })} onLogout={logout} />;
|
||||
default:
|
||||
return <Dashboard products={products} projects={projects} productTotal={productTotal} projectTotal={projectTotal} billing={billing} userName={currentUser.username} loading={!dataLoaded} navigate={navigate} onCreateProduct={(payload) => action(() => api.createProduct(payload), "")} />;
|
||||
return <Dashboard products={products} projects={projects} productTotal={productTotal} projectTotal={projectTotal} billing={billing} userName={currentUser.username} loading={!dataLoaded} navigate={navigate} />;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -100,10 +100,10 @@ export function SettingRow({ title, desc, action, toggle, checked }: { title: st
|
||||
);
|
||||
}
|
||||
|
||||
export function TeamModal({ open, title, subtitle, icon, close, children, footer, dismissable = true }: {
|
||||
export function TeamModal({ open, title, subtitle = "", icon, close, children, footer, dismissable = true }: {
|
||||
open: boolean;
|
||||
title: string;
|
||||
subtitle: string;
|
||||
subtitle?: string;
|
||||
icon: ReactNode;
|
||||
close: () => void;
|
||||
children: ReactNode;
|
||||
|
||||
@@ -102,7 +102,6 @@ export function Dashboard({
|
||||
userName?: string;
|
||||
loading?: boolean;
|
||||
navigate: NavigateFn;
|
||||
onCreateProduct?: (payload: unknown) => Promise<Product | null | undefined> | void;
|
||||
}) {
|
||||
const [tab, setTab] = useState<DashTab>("all");
|
||||
const projCount = projectTotal ?? projects.length;
|
||||
|
||||
Reference in New Issue
Block a user