Skip to content

Commit

Permalink
docs(sanity): update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias committed Jul 12, 2024
1 parent 4d6ad6e commit ecbb1d8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export function BundleForm(props: {
const newDateErrors: FormNodeValidation[] = []

// if the title is 'drafts' or 'published', show an error
// TODO localize text
if (showIsDraftPublishError) {
newTitleErrors.push({
level: 'error',
Expand All @@ -53,6 +54,7 @@ export function BundleForm(props: {
}

// if the bundle already exists, show an error
// TODO localize text
if (showBundleExists) {
newTitleErrors.push({
level: 'error',
Expand All @@ -62,6 +64,7 @@ export function BundleForm(props: {
}

// if the title is empty (but on not first render), show an error
// TODO localize text
if (!isInitialRender && title?.length === 0) {
newTitleErrors.push({
level: 'error',
Expand All @@ -70,6 +73,8 @@ export function BundleForm(props: {
})
}

// if the date is invalid, show an error
// TODO localize text
if (showDateValidation) {
newDateErrors.push({
level: 'error',
Expand Down

0 comments on commit ecbb1d8

Please sign in to comment.