File tree Expand file tree Collapse file tree 5 files changed +21
-21
lines changed
Expand file tree Collapse file tree 5 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1- export const VERSION = '1.0.0 '
1+ export const VERSION = '1.0.1 '
22
33export const RequiredVersions = {
44 controller : VERSION ,
Original file line number Diff line number Diff 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 } ,
Original file line number Diff line number Diff 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 = { [
Original file line number Diff line number Diff 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 = { [
Original file line number Diff line number Diff line change 55 unstable_createFileUploadHandler ,
66 unstable_createMemoryUploadHandler ,
77 unstable_parseMultipartFormData ,
8+ type MetaFunction ,
89 type LoaderFunctionArgs
910} from '@remix-run/node'
1011import { useNavigate } from '@remix-run/react'
@@ -14,11 +15,15 @@ import fs from 'fs'
1415
1516import { getPrisma } from '~/lib/prisma.server'
1617import { checkSession } from '~/lib/session'
17- import { INPUT_CLASSES } from '~/lib/utils'
18+ import { INPUT_CLASSES , pageTitle } from '~/lib/utils'
1819import { Page , FormElement , Actions } from '~/lib/ui'
1920
2021const { rename} = fs . promises
2122
23+ export const meta : MetaFunction < typeof loader > = ( ) => {
24+ return [ { title : pageTitle ( 'Sounds' , 'Add Sound' ) } ]
25+ }
26+
2227export const loader = async ( { request} : LoaderFunctionArgs ) => {
2328 const result = await checkSession ( request )
2429
You can’t perform that action at this time.
0 commit comments