diff --git a/servers/bigcommerce/src/ui/react-app/analytics-dashboard/App.tsx b/servers/bigcommerce/src/ui/react-app/analytics-dashboard/App.tsx index 501ea2c..5994d8a 100644 --- a/servers/bigcommerce/src/ui/react-app/analytics-dashboard/App.tsx +++ b/servers/bigcommerce/src/ui/react-app/analytics-dashboard/App.tsx @@ -1,14 +1,14 @@ -import React, { useState } from 'react'; +import React from 'react'; export default function App() { - const appName = '${app}'.split('-').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' '); + const appName = process.env.APP_NAME || 'BigCommerce App'; return (
- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface -
+- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface -
+- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface
- BigCommerce ${app.replace(/-/g, ' ')} interface + BigCommerce application interface