Skip to content

Commit

Permalink
docs: change date
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrith committed Nov 8, 2023
1 parent d45e15c commit fe30577
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion slides/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ favicon: https://secure.meetupstatic.com/next/images/general/favicon.ico
<h2 class="font-700">How to keep components clean</h2>

<div class="font-700 pt-4 text-gray-600">
Thibault FRIEDRICH - 2023/11/02
Thibault FRIEDRICH - 2023/11/15
</div>

<style>
Expand Down
8 changes: 3 additions & 5 deletions src/03_BasicComposition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export function Example1() {
)
}

function ValidityIndicator({ value, validityRegex }) {
function ValidityIndicator({ value, regex }) {
return (
`${value}`.match(validityRegex) && (
`${value}`.match(regex) && (
<div className='end-decorator'>
<CheckIcon className='h-6 w-6 indicator' />
</div>
Expand All @@ -63,9 +63,7 @@ export function Example2() {
<Input
value={value}
onChange={setValue}
endDecorator={
<ValidityIndicator value={value} validityRegex={minLengthRegex} />
}
endDecorator={<ValidityIndicator value={value} regex={minLengthRegex} />}
/>
)
}

0 comments on commit fe30577

Please sign in to comment.