add pause on mic/camera toggle

This commit is contained in:
cupcakearmy 2021-06-09 12:12:36 +02:00
parent 447726e6cc
commit 8854566336
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
2 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,7 @@ const labels = {
boot: ['Start on boot'], boot: ['Start on boot'],
autoClose: ['Close window after countdown'], autoClose: ['Close window after countdown'],
volume: ['Chime Volume'], volume: ['Chime Volume'],
skipOnCameraOrMic: ['Pause when Mic or Camera are active'],
} }
const ranges: Partial<Record<keyof typeof labels, [number, number]>> = { const ranges: Partial<Record<keyof typeof labels, [number, number]>> = {

View File

@ -1,7 +1,5 @@
import React from 'react' import React from 'react'
import '../base.css'
import Field from './Field' import Field from './Field'
const Settings = () => { const Settings = () => {
@ -15,6 +13,10 @@ const Settings = () => {
<Field setting="volume" /> <Field setting="volume" />
<Field setting="autoClose" /> <Field setting="autoClose" />
<Field setting="boot" /> <Field setting="boot" />
<Field setting="skipOnCameraOrMic" />
<small className="ml4" style={{ position: 'relative', top: '-0.5em' }}>
only on <i>macOS</i>
</small>
</fieldset> </fieldset>
</form> </form>
</div> </div>