mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-04 19:02:33 -06:00
0302-отрефакторил в нормальный вид на мобилу и десктоп
сразу выкинул пути в импортах и добавил алиас для корня
This commit is contained in:
18
rmser-view/src/modules/mobile/pages/InvoiceDraftPage.tsx
Normal file
18
rmser-view/src/modules/mobile/pages/InvoiceDraftPage.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
import { useParams, useNavigate } from "react-router-dom";
|
||||
import { DraftEditor } from "@/shared/features/invoices/DraftEditor";
|
||||
|
||||
export const InvoiceDraftPage: React.FC = () => {
|
||||
const { id: draftId } = useParams<{ id: string }>();
|
||||
const navigate = useNavigate();
|
||||
|
||||
if (!draftId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{ height: "100vh", display: "flex", flexDirection: "column" }}>
|
||||
<DraftEditor draftId={draftId} onBack={() => navigate("/invoices")} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user