Skip to content

Commit

Permalink
Initial CR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed Jul 11, 2023
1 parent 0f934eb commit 76ea589
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { SvgOtherVideoTile } from '@/assets/illustrations'
import { Text } from '@/components/Text'
import { Checkbox } from '@/components/_inputs/Checkbox'
import { Dialog } from '@/components/_overlays/Dialog'
import { atlasConfig } from '@/config'

import { IllustrationWrapper, StyledModal } from './MintNftFirstTimeModal.styles'

Expand Down Expand Up @@ -37,8 +38,8 @@ export const MintNftFirstTimeModal: FC<MintNftFirstTimeModalProps> = ({
actionDivider
>
<Text as="p" variant="t200" color="colorText">
You can mint your videos and sell them on the market for JOY. To do that select mint NFT option in context
menu of a video.
You can mint your videos and sell them on the market for {atlasConfig.joystream.tokenTicker}. To do that
select mint NFT option in context menu of a video.
</Text>
</Dialog>
</StyledModal>
Expand Down
12 changes: 6 additions & 6 deletions packages/atlas/src/hooks/useVideoForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ export const useVideoForm = ({ isEdit, id, onSubmit, form }: UseVideoFormProps)
...(isNew || dirtyFields.description ? { description: data.description } : {}),
...(isNew || dirtyFields.category ? { category: data.category } : {}),
...(isNew || dirtyFields.isPublic ? { isPublic: data.isPublic } : {}),
...((isNew || dirtyFields.hasMarketing) && data.hasMarketing != null
...((isNew || dirtyFields.hasMarketing) && data.hasMarketing !== null
? { hasMarketing: data.hasMarketing }
: {}),
...((isNew || dirtyFields.isExplicit) && data.isExplicit != null ? { isExplicit: data.isExplicit } : {}),
...((isNew || dirtyFields.language) && data.language != null ? { language: data.language } : {}),
...((isNew || dirtyFields.isExplicit) && data.isExplicit !== null ? { isExplicit: data.isExplicit } : {}),
...((isNew || dirtyFields.language) && data.language !== null ? { language: data.language } : {}),
...(isNew || anyLicenseFieldsDirty ? { license } : {}),
...((isNew || dirtyFields.enableComments) && data.enableComments != null
...((isNew || dirtyFields.enableComments) && data.enableComments !== null
? { enableComments: data.enableComments }
: {}),
...((isNew || dirtyFields.publishedBeforeJoystream) &&
data.publishedBeforeJoystream != null &&
data.publishedBeforeJoystream !== null &&
isValidDate(data.publishedBeforeJoystream)
? {
publishedBeforeJoystream: formatISO(data.publishedBeforeJoystream),
Expand Down Expand Up @@ -168,7 +168,7 @@ export const useVideoForm = ({ isEdit, id, onSubmit, form }: UseVideoFormProps)
: undefined,
assets
)
// console.log('fee', updateVideoFee, updateVideoFeeLoading, isSigned && isEdit && id)

// manage assets used by the form
const videoFormAssets = useVideoFormAssets(watch, getValues, setValue, dirtyFields, trigger, errors)
const {
Expand Down

0 comments on commit 76ea589

Please sign in to comment.