Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

322 B
Raw Blame
export function fieldDescriptionId(id: string) {
  return `${id}-description`;
}

export function fieldErrorId(id: string) {
  return `${id}-error`;
}

export function fieldDescribedBy(id: string, hasError: boolean) {
  return hasError
    ? `${fieldDescriptionId(id)} ${fieldErrorId(id)}`
    : fieldDescriptionId(id);
}