diff options
| -rw-r--r-- | src/components/FFXIVItemPrice.tsx | 2 | ||||
| -rw-r--r-- | src/components/FFXIVWorldSelector.tsx | 2 | ||||
| -rw-r--r-- | tsconfig.json | 11 |
3 files changed, 12 insertions, 3 deletions
diff --git a/src/components/FFXIVItemPrice.tsx b/src/components/FFXIVItemPrice.tsx index d65b3ca..8596839 100644 --- a/src/components/FFXIVItemPrice.tsx +++ b/src/components/FFXIVItemPrice.tsx @@ -109,7 +109,7 @@ const FFXIVItemPrice: React.FC<FFXIVItemPriceProps> = ({ itemId = 5530, itemName </table> <footer> {dataSource === 'dc' ? 'Datacenter Fallback ' : dataSource === 'region' ? 'Regional Fallback ' : ''} - {selectedWorld} Marketboard Data provided by Universalis API. <a className="eorzeadb_link" href="#" onClick={(e) => { e.preventDefault(); fetchData(); }}>Click here to reload data</a> + {selectedWorld} Marketboard Data provided by Universalis API. <a className="eorzeadb_link" href="#" onClick={(e: React.MouseEvent<HTMLAnchorElement>) => { e.preventDefault(); fetchData(); }}>Click here to reload data</a> <br /> </footer> </div> diff --git a/src/components/FFXIVWorldSelector.tsx b/src/components/FFXIVWorldSelector.tsx index d078640..95d6f65 100644 --- a/src/components/FFXIVWorldSelector.tsx +++ b/src/components/FFXIVWorldSelector.tsx @@ -47,7 +47,7 @@ const FFXIVWorldSelector: React.FC<FFXIVWorldSelectorProps> = ({ message = "Sele <label htmlFor="world-select" className="ffxiv-label">{message}</label> <select id="world-select" onChange={handleWorldChange} value={selectedWorld || ''} className="ffxiv-select"> <option value="">--Please choose an option--</option> - {worlds.map((world) => ( + {worlds.map((world: World) => ( <option key={world.id} value={world.name}> {world.name} </option> diff --git a/tsconfig.json b/tsconfig.json index 77da9dd..495999c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,12 @@ { - "extends": "astro/tsconfigs/strict" + "extends": "astro/tsconfigs/strict", + "compilerOptions": { + "jsx": "react", + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "skipLibCheck": true + } }
\ No newline at end of file |
