refactor: new actions buttons text
This commit is contained in:
parent
5028fd7334
commit
a6a9ce4c0d
|
|
@ -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={{
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue