Skip to content

Commit

Permalink
wip new init flow
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Aug 23, 2019
1 parent 568c021 commit 1376998
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cli/introspection/src/prompt/screens/Step60ProcessBlank.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import path from 'path'
import { sqliteSchemaOnly } from '../utils/templates'
import { RouterContext } from '../components/Router'
import { sync as makeDirSync } from 'make-dir'
import { useExampleApi } from '../utils/useExampleApi'

const Step60ProcessBlank: React.FC = () => {
const [state] = useInitState()
const [state, { setState }] = useInitState()
const router = useContext(RouterContext)
const examples = useExampleApi()
useEffect(() => {
// perform actions to get blank project going...
// state.blank??
Expand All @@ -18,7 +20,13 @@ const Step60ProcessBlank: React.FC = () => {
fs.writeFileSync(path.join(state.outputDir, './prisma/schema.prisma'), sqliteSchemaOnly(state.usePhoton))
router.setRoute('success')
}
}, [state])
if (state.useDemoScript) {
if (examples) {
// if (state.selectedLanguage === '')
// setState(examples.examples.)
}
}
}, [state, examples])

return (
<Box flexDirection="column">
Expand Down

0 comments on commit 1376998

Please sign in to comment.