- {cycle.task} |
- {cycle.minutesAmount} minutos |
+ {cycle.task} |
+ {cycle.minutesAmount} minutes |
{formatDistanceToNow(new Date(cycle.startDate), {
addSuffix: true,
- locale: ptBR,
+ locale: enUS,
})}
|
{cycle.finishedDate && (
- Concluído
+ Concluded
)}
{cycle.interruptedDate && (
- Interrompido
+ Interrupted
)}
{!cycle.finishedDate && !cycle.interruptedDate && (
- Em andamento
+ Ongoing
)}
|
diff --git a/src/pages/History/styles.ts b/src/pages/History/styles.ts
index 8c5301b..a9c437a 100644
--- a/src/pages/History/styles.ts
+++ b/src/pages/History/styles.ts
@@ -22,10 +22,10 @@ export const HistoryList = styled.div`
min-width: 600px;
th {
- background-color: ${(props) => props.theme['gray-600']};
+ background-color: ${(props) => props.theme['gray-700']};
padding: 1rem;
text-align: left;
- color: ${(props) => props.theme['gray-100']};
+ color: ${(props) => props.theme.white};
font-size: 0.875rem;
line-height: 1.6rem;
@@ -48,6 +48,7 @@ export const HistoryList = styled.div`
&:first-child {
width: 50%;
padding-left: 1.5rem;
+ font-weight: bold;
}
&:last-child {
padding-right: 1.5rem;
diff --git a/src/pages/Home/components/NewCycleForm/index.tsx b/src/pages/Home/components/NewCycleForm/index.tsx
index 0729895..0fe1ede 100644
--- a/src/pages/Home/components/NewCycleForm/index.tsx
+++ b/src/pages/Home/components/NewCycleForm/index.tsx
@@ -18,13 +18,6 @@ export function NewCycleForm() {
{...register('task')}
/>
-