Skip to content

Commit

Permalink
add fetch data on component
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaz-Tiago committed May 15, 2022
1 parent b7ff0cc commit b5acc0e
Show file tree
Hide file tree
Showing 8 changed files with 239 additions and 20 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AV_TOKEN=
173 changes: 172 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
},
"devDependencies": {
"@types/jest": "^27.0.3",
"@types/node": "^17.0.33",
"jest": "^27.4.5",
"jest-cli": "^27.4.5",
"puppeteer": "^10.0.0"
"puppeteer": "^10.0.0",
"rollup-plugin-dotenv": "^0.3.0"
},
"license": "MIT"
}
2 changes: 2 additions & 0 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export namespace Components {
"titleMenu": string;
}
interface VazStockPrice {
"stockSymbol": string;
}
interface VazTooltip {
"opened": boolean;
Expand Down Expand Up @@ -50,6 +51,7 @@ declare namespace LocalJSX {
"titleMenu"?: string;
}
interface VazStockPrice {
"stockSymbol"?: string;
}
interface VazTooltip {
"opened"?: boolean;
Expand Down
7 changes: 7 additions & 0 deletions src/components/stock-price/stock-price.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ form button:active {
color: var(--color-orange-hovered);
border-color: var(--color-orange-hovered);
}

form button:disabled {
background: #ccc;
border-color: #ccc;
color: var(--color-blue);
cursor: not-allowed;
}
Loading

0 comments on commit b5acc0e

Please sign in to comment.