CEC-775 Manifest details component (#114)

* CEC-775 Manifest details component

* Code smells

* Fix build warning
This commit is contained in:
John Wu
2022-01-17 08:59:55 -08:00
committed by GitHub
parent cb5035cf96
commit a858b842c6
9 changed files with 467 additions and 6 deletions

View File

@@ -3,6 +3,37 @@ import React from "react";
const ManifestsContext = React.createContext();
let busy = false;
let manifest = {
id: 1,
name: "Test Deployment",
version: "1.0.100",
description: "Deployment folder test",
release_notes: "https://releasenotes.com",
ecu_list: "ICC 1000",
ecu_updates: [
{
name: "ICC",
part_number: "BBBBBB",
version: "1000",
files: [
{
file_id: "b0cda514c94080b4",
filename: "LARGE.jpg",
url: "https://upload-dev.fiskerdps.com/92bbc448-99c8-4851-91ad-f8042e4deb49/LARGE.jpg",
file_size: 14559274,
size: 14488498,
type: "ODX Data",
created: "2021-12-09T22:38:29.102813Z",
updated: "2021-12-09T22:38:29.102813Z",
},
],
created: "2021-12-09T22:38:20.408351Z",
updated: "2022-01-14T00:47:08.996451Z",
},
],
created: "2021-12-09T22:38:11.679943Z",
updated: "2022-01-14T00:47:08.996451Z",
};
let manifests = [
{
id: 1,
@@ -22,6 +53,7 @@ export const useManifestsContext = () => ({
busy,
manifests,
totalManifests,
getManifest: jest.fn(() => manifest),
getManifests: jest.fn(() => manifests),
deleteManifest: jest.fn(),
});