Skip to content

Commit

Permalink
Show interactive form in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Feb 1, 2023
1 parent 6adf456 commit dda199f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/client/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import React from 'react'
import { ThemeProvider } from '@mui/material/styles'
import { Box } from '@mui/material'
import { inProduction } from '../config'
import useTheme from './theme'
import Footer from './components/Footer'
import NavBar from './components/NavBar/NavBar'
import InteractiveForm from './components/InteractiveForm/InteractiveForm'
import Form from './components/Form/Form'

const App = () => {
const theme = useTheme()
Expand All @@ -15,7 +13,7 @@ const App = () => {
<ThemeProvider theme={theme}>
<Box textAlign="center">
<NavBar />
{inProduction ? <Form /> : <InteractiveForm />}
<InteractiveForm />
<Footer />
</Box>
</ThemeProvider>
Expand Down

0 comments on commit dda199f

Please sign in to comment.