Skip to content

Commit 26b213a

Browse files
committed
fix: minor bug fixes
1 parent 95a80ae commit 26b213a

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

app/lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const VERSION = '1.0.0'
1+
export const VERSION = '1.0.1'
22

33
export const RequiredVersions = {
44
controller: VERSION,

app/routes/broadcast.tts.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ const BroadcastTTS = () => {
112112
{
113113
label: 'Back',
114114
color: 'bg-stone-200',
115-
onClick: () => {
115+
onClick: e => {
116+
e.preventDefault()
116117
navigate('/broadcast')
117118
}
118119
},

app/routes/schedule.$schedule.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,12 @@ const EditSchedule = () => {
208208
label="Count"
209209
helperText="How many times should the sound be played"
210210
>
211-
<label>
212-
Count
213-
<input
214-
type="number"
215-
defaultValue={schedule.count}
216-
name="count"
217-
className={INPUT_CLASSES}
218-
/>
219-
</label>
211+
<input
212+
type="number"
213+
defaultValue={schedule.count}
214+
name="count"
215+
className={INPUT_CLASSES}
216+
/>
220217
</FormElement>
221218
<Actions
222219
actions={[

app/routes/schedule.add.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,12 @@ const AddSchedule = () => {
181181
label="Count"
182182
helperText="How many times should the sound be played"
183183
>
184-
<label>
185-
Count
186-
<input
187-
type="number"
188-
defaultValue={1}
189-
name="count"
190-
className={INPUT_CLASSES}
191-
/>
192-
</label>
184+
<input
185+
type="number"
186+
defaultValue={1}
187+
name="count"
188+
className={INPUT_CLASSES}
189+
/>
193190
</FormElement>
194191
<Actions
195192
actions={[

app/routes/sounds.add.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
unstable_createFileUploadHandler,
66
unstable_createMemoryUploadHandler,
77
unstable_parseMultipartFormData,
8+
type MetaFunction,
89
type LoaderFunctionArgs
910
} from '@remix-run/node'
1011
import {useNavigate} from '@remix-run/react'
@@ -14,11 +15,15 @@ import fs from 'fs'
1415

1516
import {getPrisma} from '~/lib/prisma.server'
1617
import {checkSession} from '~/lib/session'
17-
import {INPUT_CLASSES} from '~/lib/utils'
18+
import {INPUT_CLASSES, pageTitle} from '~/lib/utils'
1819
import {Page, FormElement, Actions} from '~/lib/ui'
1920

2021
const {rename} = fs.promises
2122

23+
export const meta: MetaFunction<typeof loader> = () => {
24+
return [{title: pageTitle('Sounds', 'Add Sound')}]
25+
}
26+
2227
export const loader = async ({request}: LoaderFunctionArgs) => {
2328
const result = await checkSession(request)
2429

0 commit comments

Comments
 (0)