Skip to content

Commit

Permalink
Merge pull request #681 from contember/feat/add-todo-component
Browse files Browse the repository at this point in the history
feat(playground): add todo comment component
  • Loading branch information
matej21 authored Mar 22, 2024
2 parents 9d2fbce + 7f404f6 commit 1c24943
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions packages/playground/admin/lib/components/dev/todo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { PropsWithChildren } from 'react'

export interface CommentProps extends PropsWithChildren {
}

export const Todo = ({ children }: CommentProps) => {
if (!import.meta.env.DEV) return null

return (
<div className="bg-yellow-100 p-4">
<strong>TODO:</strong> {children}
</div>
)
}
2 changes: 1 addition & 1 deletion packages/playground/admin/lib/components/form/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { uic } from '../../utils/uic'
import { Label } from '../ui/label'

export const FormLayout = uic('div', {
baseClass: 'flex flex-col gap-2 w-full ml-4',
baseClass: 'flex flex-col gap-2 w-full mx-4',
displayName: 'FormLayout',
})

Expand Down

0 comments on commit 1c24943

Please sign in to comment.