Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
vantage-ola committed Aug 14, 2024
1 parent 43e130b commit 4d8382b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
![Contributors](https://img.shields.io/github/contributors/vantage-ola/track-now?color=green) ![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/vantage-ola/track-now)
![GitHub License](https://img.shields.io/github/license/vantage-ola/track-now)
![GitHub Tag](https://img.shields.io/github/v/tag/vantage-ola/track-now)
![tracknow api](https://img.shields.io/github/actions/workflow/status/vantage-ola/tracknow/workflow.yml)

![tracknow worflows](https://img.shields.io/github/actions/workflow/status/vantage-ola/tracknow/workflow.yml)
![tracknow code coverage](https://img.shields.io/codecov/c/github/vantage-ola/tracknow)

## Table Of Contents

Expand Down
6 changes: 3 additions & 3 deletions tracknow/web/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { ColorModeScript } from "@chakra-ui/react"
import * as React from "react"
import * as ReactDOM from "react-dom/client"
import { createRoot } from "react-dom/client";
import { App } from "./App"


const container = document.getElementById("root")
if (!container) throw new Error('Failed to find the root element');
const root = ReactDOM.createRoot(container)
const root = createRoot(container);

root.render(
<> {/* remove strict mode for production */}
<ColorModeScript />
<App />
</>,
)
);
2 changes: 1 addition & 1 deletion tracknow/web/src/tests/hooks/API.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { jest, describe, beforeEach, it, expect } from '@jest/globals';
import API, { API_KEY, API_PREFIX_URL } from '../../hooks/API';
import API from '../../hooks/API';

// Mock fetch globally
global.fetch = jest.fn() as unknown as typeof fetch;
Expand Down

0 comments on commit 4d8382b

Please sign in to comment.