Function
getLegacyNotesLayoutMode
(
source: Record<string, unknown>,
)
Source from the content-addressed store, hash-verified
| 211 | } |
| 212 | |
| 213 | function getLegacyNotesLayoutMode( |
| 214 | source: Record<string, unknown>, |
| 215 | ): SpaceLayoutMode { |
| 216 | if (source.isSidebarHidden !== true) { |
| 217 | return 'all-panels' |
| 218 | } |
| 219 | |
| 220 | return source.isListHidden === true ? 'editor-only' : 'list-editor' |
| 221 | } |
| 222 | |
| 223 | function sanitizeDonations(value: unknown): DonationsState { |
| 224 | const source = asRecord(value) |
Tested by
no test coverage detected