|
@@ -1,5 +1,6 @@
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
import { observable, makeObservable, action } from 'mobx'
|
|
import { observable, makeObservable, action } from 'mobx'
|
|
|
|
|
+import { isSafari } from '../utils'
|
|
|
|
|
|
|
|
export interface TLSettingsProps {
|
|
export interface TLSettingsProps {
|
|
|
mode: 'light' | 'dark'
|
|
mode: 'light' | 'dark'
|
|
@@ -12,7 +13,7 @@ export class TLSettings implements TLSettingsProps {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@observable mode: 'dark' | 'light' = 'light'
|
|
@observable mode: 'dark' | 'light' = 'light'
|
|
|
- @observable showGrid = true
|
|
|
|
|
|
|
+ @observable showGrid = !isSafari()
|
|
|
|
|
|
|
|
@action update(props: Partial<TLSettingsProps>): void {
|
|
@action update(props: Partial<TLSettingsProps>): void {
|
|
|
Object.assign(this, props)
|
|
Object.assign(this, props)
|