mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Refactor ShowConvertedCompose component: simplify conditional rendering of the compose file display by removing unnecessary null check and ensuring consistent layout.
This commit is contained in:
parent
d793c6a2ec
commit
17a859d26d
@ -88,21 +88,14 @@ export const ShowConvertedCompose = ({ composeId }: Props) => {
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{compose !== null ? (
|
<pre>
|
||||||
<pre>
|
<CodeEditor
|
||||||
<CodeEditor
|
value={compose || ""}
|
||||||
value={compose || ""}
|
language="yaml"
|
||||||
language="yaml"
|
readOnly
|
||||||
readOnly
|
height="50rem"
|
||||||
height="50rem"
|
/>
|
||||||
/>
|
</pre>
|
||||||
</pre>
|
|
||||||
) : (
|
|
||||||
<div className="py-4 text-center text-muted-foreground">
|
|
||||||
No compose file available. Make sure at least one domain is
|
|
||||||
configured for this project.
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user