Library updates (#792)

* Upgrade Typescript to 4.0
* Update i18n-iso-countries to 6.0
* Update react-intl to 5.8.0
* Update jimp to 0.16.1
* Update apollo and graphql libraries
* Update various libraries and fix linting/type errors
* Refactor cache invalidation
* Codegen refetch queries
This commit is contained in:
InfiniteTF
2020-09-11 05:01:00 +02:00
committed by GitHub
parent 5ba11e0e93
commit 5cd7dcaeb2
27 changed files with 2076 additions and 1881 deletions

View File

@@ -26,15 +26,14 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
</Link>
));
const renderMovies = (movies: Partial<GQL.SceneMovie>[]) => {
return movies.map((sceneMovie) =>
const renderMovies = (scene: GQL.SlimSceneDataFragment) =>
scene.movies.map((sceneMovie) =>
!sceneMovie.movie ? undefined : (
<Link to={NavUtils.makeMovieScenesUrl(sceneMovie.movie)}>
<h6>{sceneMovie.movie.name}</h6>
</Link>
)
);
};
const renderSceneRow = (scene: GQL.SlimSceneDataFragment) => (
<tr key={scene.id}>
@@ -68,7 +67,7 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
</Link>
)}
</td>
<td>{renderMovies(scene.movies)}</td>
<td>{renderMovies(scene)}</td>
</tr>
);