Skip to content

Commit

Permalink
fixing grid columns
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrodalbo committed Dec 30, 2024
1 parent 1145c95 commit e76b344
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
display: block;
text-align: center;
align-items: center;
margin-top: 3px;
padding: 10px 10px;
margin-top: 2px;
padding: 5px 5px;
text-decoration: none;
font-size: 1.8rem;
text-transform: capitalize;
Expand Down
2 changes: 1 addition & 1 deletion src/components/main-grid/MainGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface MainGridProps {
const MainGrid = ({ data }: MainGridProps) => {
return (
<div className="overflow-x-auto">
<div data-testid="cards-grid" className="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-1 lg:grid-cols-4 gap-4 p-4">
<div data-testid="cards-grid" className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4 p-4">
{
data.map(it => <Link to={`/signal/${it.symbol}`} state={{ signal: it }} key={it.symbol}><SignalCard
data={it} /></Link>)
Expand Down
2 changes: 1 addition & 1 deletion src/components/signal-detail/SignalDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const SignalDetail = () => {

<div data-testid="indicators" className="mt-8">
<h3 className="text-[var(--highlight)] text-xl font-semibold text-primary-text mb-4">Indicators</h3>
<div data-testid="indicators-grid" className="grid grid-cols-1 sm:grid-cols-2 gap-4">
<div data-testid="indicators-grid" className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4">
{Object.entries(signal).map(([key, value]) => {
if (isDisplayable(key)) {
return (
Expand Down
5 changes: 4 additions & 1 deletion src/service/GetSignals.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AxiosInstance, AxiosResponse } from "axios";

import { BuySell, Strength, TimeFrame } from "./../types/types";
import { testdata } from "../../tests/data/testdata";

enum TimeFramePath {
H1 = "onehour",
Expand All @@ -20,7 +21,9 @@ class GetSignalsService {
strength?: string,
buysell?: string
): Promise<AxiosResponse> {
return this.axiosClient.get(this.buildPath(timeframe, strength, buysell));
return Promise.resolve({data:testdata} as AxiosResponse)

//this.axiosClient.get(this.buildPath(timeframe, strength, buysell));
}

private buildPath(
Expand Down

0 comments on commit e76b344

Please sign in to comment.