refactor: new actions buttons text

This commit is contained in:
Nicola Zambello 2023-02-20 15:04:22 +01:00
parent 5028fd7334
commit a6a9ce4c0d
Signed by: nzambello
GPG key ID: 56E4A92C2C1E50BA
2 changed files with 8 additions and 4 deletions

View file

@ -134,7 +134,7 @@ export default function TimeEntriesPage() {
leftIcon={<Play />} leftIcon={<Play />}
sx={{ marginTop: theme.spacing.sm, marginBottom: theme.spacing.sm }} sx={{ marginTop: theme.spacing.sm, marginBottom: theme.spacing.sm }}
> >
Start New
</Button> </Button>
<NativeSelect <NativeSelect
sx={{ sx={{

View file

@ -21,7 +21,7 @@ import {
useNavigate useNavigate
} from '@remix-run/react'; } from '@remix-run/react';
import * as React from 'react'; import * as React from 'react';
import { AlertTriangle, Play } from 'react-feather'; import { AlertTriangle, Play, Save } from 'react-feather';
import { getProjects } from '~/models/project.server'; import { getProjects } from '~/models/project.server';
import { createTimeEntry, stopAllTimeEntries } from '~/models/timeEntry.server'; import { createTimeEntry, stopAllTimeEntries } from '~/models/timeEntry.server';
import { requireUserId } from '~/session.server'; import { requireUserId } from '~/session.server';
@ -411,8 +411,12 @@ export default function NewTimeEntryPage() {
</Stack> </Stack>
<Group position="left" mt="lg"> <Group position="left" mt="lg">
<Button type="submit" leftIcon={<Play />} radius={theme.radius.md}> <Button
Start type="submit"
leftIcon={end ? <Save /> : <Play />}
radius={theme.radius.md}
>
{end ? 'Save' : 'Start'}
</Button> </Button>
</Group> </Group>
</Form> </Form>