From 06867ea77f3f5a3aad8f3425cb909721219ebcb3 Mon Sep 17 00:00:00 2001 From: upfisker <135734425+upfisker@users.noreply.github.com> Date: Thu, 15 Jun 2023 08:08:55 -0700 Subject: [PATCH] CEC-4572 Added tags for the selected car. (#360) * Added tags for the selected car. * Updated snapshots as UI changes. --- .../App/__snapshots__/App.test.js.snap | 10 +++++ .../Details/__snapshots__/index.test.jsx.snap | 10 +++++ src/components/Cars/Status/Details/index.jsx | 5 +++ .../__snapshots__/DetailsTab.test.jsx.snap | 10 +++++ .../Status/__snapshots__/index.test.jsx.snap | 10 +++++ .../Update/__snapshots__/index.test.jsx.snap | 37 +++++++++++++++++++ src/components/Cars/Update/index.jsx | 24 +++++++++++- 7 files changed, 105 insertions(+), 1 deletion(-) diff --git a/src/components/App/__snapshots__/App.test.js.snap b/src/components/App/__snapshots__/App.test.js.snap index 7cc160d..d5f2921 100644 --- a/src/components/App/__snapshots__/App.test.js.snap +++ b/src/components/App/__snapshots__/App.test.js.snap @@ -11444,6 +11444,16 @@ exports[`App Route /vehicle-status authenticated 1`] = ` :

+
+

+ + Tags + + : +

+
diff --git a/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap b/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap index 8925b8e..fb68c0c 100644 --- a/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap +++ b/src/components/Cars/Status/Details/__snapshots__/index.test.jsx.snap @@ -147,6 +147,16 @@ exports[`VehicleDetailsTab Render 1`] = ` :

+
+

+ + Tags + + : +

+
diff --git a/src/components/Cars/Status/Details/index.jsx b/src/components/Cars/Status/Details/index.jsx index 0bf687f..99b8bf7 100644 --- a/src/components/Cars/Status/Details/index.jsx +++ b/src/components/Cars/Status/Details/index.jsx @@ -147,6 +147,11 @@ const MainForm = ({ vin }) => {

)} + +

+ Tags: {vehicle.tags} +

+
+
+

+ + Tags + + : +

+
diff --git a/src/components/Cars/Status/__snapshots__/index.test.jsx.snap b/src/components/Cars/Status/__snapshots__/index.test.jsx.snap index d28dffc..a4a0c43 100644 --- a/src/components/Cars/Status/__snapshots__/index.test.jsx.snap +++ b/src/components/Cars/Status/__snapshots__/index.test.jsx.snap @@ -336,6 +336,16 @@ exports[`CarStatus Render 1`] = ` :

+
+

+ + Tags + + : +

+
diff --git a/src/components/Cars/Update/__snapshots__/index.test.jsx.snap b/src/components/Cars/Update/__snapshots__/index.test.jsx.snap index 91efa90..ee2b41a 100644 --- a/src/components/Cars/Update/__snapshots__/index.test.jsx.snap +++ b/src/components/Cars/Update/__snapshots__/index.test.jsx.snap @@ -1006,6 +1006,43 @@ exports[`VehicleUpdate Render 1`] = `
+
+ +
+ + +
+