Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit 9aa061f

Browse files
committed
ci(circle): Fixes build.
1 parent baf52a4 commit 9aa061f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<a href="http://github.com/js-entity-repos/todos">Github</a>
2020
</p>
2121
</footer>
22-
<script src="./presenter/index.tsx"></script>
22+
<script src="./presenter/index.ts"></script>
2323
</body>
2424

2525
</html>

src/presenter/index.tsx renamed to src/presenter/index.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import * as React from 'react';
21
import * as dom from 'react-dom';
32
import { State } from '../repo/FactoryConfig';
43
import observer from '../utils/observer';
5-
import App from './App';
4+
import app from './app';
65

76
const initialState: State = {
87
editedTitles: {},
@@ -30,6 +29,6 @@ const patchState = (patch: Partial<State>) => {
3029
};
3130

3231
dom.render(
33-
<App repo={{ getState, patchState }} />,
32+
app({ repo: { getState, patchState } }),
3433
document.getElementsByClassName('todoapp')[0],
3534
);

0 commit comments

Comments
 (0)