Skip to content

Commit

Permalink
date input fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangtanaka-org committed Oct 15, 2024
1 parent c89ed51 commit 9aa0152
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/form/CustomCopyrightForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ function CustomCopyrightForm({ onChange, value }) {
)}" under the Minting Contract managed by the TEIA DAO LLC [${HEN_CONTRACT_FA2}]. This Agreement outlines the rights and obligations associated with the ownership and use of the NFT's likeness and any derivatives thereof ("Work").
\n“Editions” refers to the total number of authorized copies of the NFT that the Creator issues at the time of minting. Each copy represents an "Edition" of the NFT, allowing multiple Owners (or one Owner holding multiple copies) to hold rights to the Work under the terms of this Agreement.`

documentText += `\n\nIn all cases, the written text in this document will take precedence over any data or metadata displays on or off-chain as the authoritative permissions for the Work, applied to both the Creator(s) and Owner(s). Statements in the Addendums have the ability to overrule or nullify statements in the auto-generated portions of this document in cases of conflicts or inconsistencies.`
documentText += `\n\nIn cases where multiple Creators or Collaborators have contributed to the creation of the Work, the rights and obligations stipulated herein apply equally to all Creators. Each Creator is entitled to the rights granted under this Agreement, and such rights are shared collectively among all Creators unless specified otherwise.`

if (clauses.releasePublicDomain) {
Expand Down Expand Up @@ -493,11 +494,10 @@ Unless stated otherwise (in this Agreement itself), this Agreement remains effec
}
}

const handleDateChange = (event) => {
const { name, value } = event.target
const handleDateChange = (checked) => {
setClauses((prev) => ({
...prev,
[name]: value,
expirationDateExists: checked,
}))
}

Expand Down Expand Up @@ -611,9 +611,7 @@ Unless stated otherwise (in this Agreement itself), this Agreement remains effec
name="expirationDateExists"
label="Add an Expiration Date to Clauses"
checked={clauses.expirationDateExists}
onCheck={(checked) =>
handleDateChange(checked, 'expirationDateExists')
}
onCheck={handleDateChange}
className={styles.field}
/>
<span
Expand All @@ -633,8 +631,8 @@ Unless stated otherwise (in this Agreement itself), this Agreement remains effec
<h4>{clauseLabels.expirationDate}</h4>
<Input
type="date"
value={clauses.expirationDate || ''}
onChange={(e) => handleChange(e?.target?.value, 'expirationDate')}
value={clauses.expirationDate}
onChange={(e) => handleChange(e, 'expirationDate')}
className={styles.field}
/>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/form/copyrightmodaltext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const copyrightModalText = {
</ul>
<p>Note that some digital mediums (e.g. software, websites, video games) often fall into several categories, depending on how it's use. If you want a "permissive" contract, choose as many as applicable. If you want more granularity, think about use-cases and scope them as necessary. (e.g. for video games, reproduction rights will allow the developer to sell assets like art and music directly, whereas broadcasting rights will only allow to "use" them in-game.)
<p>If geography, timelines (i.e. expiration dates), or frequency of usage (e.g. each Owner is only allowed to make X copies) is of importance, Creators can add those details in the Addendum sections to scope the Agreement as necessary.</p>
<p>In all cases, the written text in this document will take precident over any data or metadata displays as the authoritative permissions for the Work, applied to both the Creator(s) and Owner(s), with the statements in the Addendums having the ability to overrule or nullify statements in the auto-generated portions of the document itself in cases of conflicts or inconsistencies. (Though it is recommended that you don't create contradictions in the document itself to avoid misunderstandings or misinterpretations.)</p>
`,
reproduce: `
<p>This right allows the Owner of the Work to make direct copies of the work, for both commercial and non-commercial purposes.</p>
Expand Down

0 comments on commit 9aa0152

Please sign in to comment.