From d3194ee28cd702d8b8fd1449c39bb533fd078ce6 Mon Sep 17 00:00:00 2001 From: lmeyer Date: Tue, 12 Nov 2024 09:20:26 +0100 Subject: [PATCH] docs:update templates --- .../detail-page/examples/default.tsx | 231 +++++++++++------- 1 file changed, 147 insertions(+), 84 deletions(-) diff --git a/packages/docs/src/content/01-get-started/templates/detail-page/examples/default.tsx b/packages/docs/src/content/01-get-started/templates/detail-page/examples/default.tsx index 5b3151f58..1ec538a55 100644 --- a/packages/docs/src/content/01-get-started/templates/detail-page/examples/default.tsx +++ b/packages/docs/src/content/01-get-started/templates/detail-page/examples/default.tsx @@ -3,7 +3,6 @@ import Text from "@mittwald/flow-react-components/Text"; import Button from "@mittwald/flow-react-components/Button"; import Section from "@mittwald/flow-react-components/Section"; import Content from "@mittwald/flow-react-components/Content"; -import Link from "@mittwald/flow-react-components/Link"; import { Modal, ModalTrigger, @@ -31,39 +30,58 @@ export default () => { domain: "example.de", type: "Domain", ssl: undefined, + owner: { + firstName: "Max", + lastName: "Mustermann", + street: "Königsberger Str", + houseNumber: "4", + zip: "32339", + city: "Espelkamp", + }, }; const updateOwnerModal = ( Domain-Inhaber bearbeiten -
- + - + - + - + @@ -71,7 +89,29 @@ export default () => {
+ + + + + + +
+ ); + const updateDomainTargetModal = ( + + Domain-Ziel ändern + +
+ + + +
+
- - Domain umziehen - Domain entfernen - - + + + + + ); + + const domainDetailsSection = ( +
+
+ Domain-Details + + + + alert("not implemented")} + > + Domain umziehen + + alert("not implemented")} + > + Domain entfernen + + + + -
- - - - {domain.domain} - - - - {domain.ssl ? domain.ssl : "-"} - - -
-
-
- Domain-Inhaber - - - {updateOwnerModal} - -
- - - - - Max Mustermann -
- Königsberger Str. 4, 32339 Espelkamp -
-
- - - - max@mustermann.de -
- 0163/123456789 -
-
-
-
+ {updateDomainTargetModal} + + + + + + {domain.domain} + + + + {domain.ssl ? domain.ssl : "-"} + + + + ); + + const domainOwnerSection = ( +
+
+ Domain-Inhaber + + + {updateOwnerModal} + +
+ + + + + Max Mustermann +
+ Königsberger Str. 4, 32339 Espelkamp +
+
+ + + + max@mustermann.de +
+ 0163/123456789 +
+
+
+
+ ); + + return ( + + {sslAlertSection} + {domainDetailsSection} + {domainOwnerSection} ); };