Skip to content

Commit

Permalink
Update stats card to stats table
Browse files Browse the repository at this point in the history
  • Loading branch information
camilovegag committed May 13, 2024
1 parent 606b06d commit b3bda71
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/berlin/src/components/tables/stats-card/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Body } from '../../typography/Body.styled';
import { Card } from './StatsCard.styled';
import { Card } from './StatsTable.styled';

type StatsCardProps = {
type StatsTableProps = {
title: string;
number?: number;
};

function StatsCard({ title, number }: StatsCardProps) {
function StatsTable({ title, number }: StatsTableProps) {
return (
<Card>
<Body>{title}</Body>
Expand All @@ -15,4 +15,4 @@ function StatsCard({ title, number }: StatsCardProps) {
);
}

export default StatsCard;
export default StatsTable;
1 change: 1 addition & 0 deletions packages/berlin/src/components/tables/stats-table/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './StatsTable';
4 changes: 2 additions & 2 deletions packages/berlin/src/pages/Results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useState } from 'react';
import BackButton from '../components/back-button';
import ResultsColumns from '../components/columns/results-columns';
import ResultsTable from '../components/tables/results-table';
import StatsCard from '../components/tables/stats-card';
import StatsTable from '../components/tables/stats-table';
import StatsColumns from '../components/columns/stats-columns';

function Results() {
Expand Down Expand Up @@ -78,7 +78,7 @@ function Results() {
<FlexColumn $gap="0">
<StatsColumns />
{overallStatistics.map((stat) => (
<StatsCard key={stat.id} title={stat.title} number={stat.data} />
<StatsTable key={stat.id} title={stat.title} number={stat.data} />
))}
</FlexColumn>
</FlexColumn>
Expand Down

0 comments on commit b3bda71

Please sign in to comment.