From aad8d84e13ce31c1b7c1cbb930fb8bd4c0abe13a Mon Sep 17 00:00:00 2001
From: Corentin Thomasset <corentin.thomasset74@gmail.com>
Date: Sun, 7 May 2023 23:31:10 +0200
Subject: ui-lib(new-component): added text input component in the c-lib

---
 src/ui/demo/demo-wrapper.vue | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/ui/demo/demo-wrapper.vue')

diff --git a/src/ui/demo/demo-wrapper.vue b/src/ui/demo/demo-wrapper.vue
index cc16a00..8d4bae0 100644
--- a/src/ui/demo/demo-wrapper.vue
+++ b/src/ui/demo/demo-wrapper.vue
@@ -18,6 +18,8 @@
       </div>
 
       <div flex-1 pl-4>
+        <h1>{{ componentName }}</h1>
+
         <router-view />
       </div>
     </div>
@@ -25,9 +27,12 @@
 </template>
 
 <script lang="ts" setup>
+import _ from 'lodash';
 import { demoRoutes } from './demo.routes';
 
 const route = useRoute();
+
+const componentName = computed(() => _.startCase(String(route.name).replace(/^c-/, '')));
 </script>
 
 <style lang="less" scoped></style>
-- 
cgit v1.2.3

