From 680f0d648ab697fedd7340c0eea609a726dbbd44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Thu, 5 Nov 2026 18:20:23 +0100 Subject: [PATCH] style(Recipes): format conditional expression for readability Improves the readability of the conditional expression in the getColumns function. --- resources/ts/back/Pages/Products/Index.tsx | 4 +--- resources/ts/back/Pages/Recipes/Index.tsx | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/resources/ts/back/Pages/Products/Index.tsx b/resources/ts/back/Pages/Products/Index.tsx index 7cd3d5b1..f4215c2c 100644 --- a/resources/ts/back/Pages/Products/Index.tsx +++ b/resources/ts/back/Pages/Products/Index.tsx @@ -188,9 +188,7 @@ const getColumns = ( )} {str( trans( - row.getValue("is_published") - ? "back.published" - : "back.draft", + row.getValue("is_published") ? "back.published" : "back.draft", ), ) .ucFirst() diff --git a/resources/ts/back/Pages/Recipes/Index.tsx b/resources/ts/back/Pages/Recipes/Index.tsx index 9b35fe53..31cda9e0 100644 --- a/resources/ts/back/Pages/Recipes/Index.tsx +++ b/resources/ts/back/Pages/Recipes/Index.tsx @@ -222,9 +222,7 @@ const getColumns = ( )} {str( trans( - row.getValue("is_published") - ? "back.published" - : "back.draft", + row.getValue("is_published") ? "back.published" : "back.draft", ), ) .ucFirst()