Reorganize state models for clarity (#378)
This commit is contained in:
parent
9652d994dd
commit
2045c615a8
44 changed files with 163 additions and 171 deletions
|
@ -12,7 +12,7 @@ import {PickedMedia} from '../../../lib/media/picker'
|
|||
import {Text} from '../util/text/Text'
|
||||
import {ErrorMessage} from '../util/error/ErrorMessage'
|
||||
import {useStores} from 'state/index'
|
||||
import {ProfileViewModel} from 'state/models/profile-view'
|
||||
import {ProfileModel} from 'state/models/content/profile'
|
||||
import {s, colors, gradients} from 'lib/styles'
|
||||
import {enforceLen} from 'lib/strings/helpers'
|
||||
import {MAX_DISPLAY_NAME, MAX_DESCRIPTION} from 'lib/constants'
|
||||
|
@ -30,7 +30,7 @@ export function Component({
|
|||
profileView,
|
||||
onUpdate,
|
||||
}: {
|
||||
profileView: ProfileViewModel
|
||||
profileView: ProfileModel
|
||||
onUpdate?: () => void
|
||||
}) {
|
||||
const store = useStores()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue