Skip to content

Commit

Permalink
refactor(docs): time-input dx
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Nov 18, 2024
1 parent e537c1f commit f49a6fd
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 34 deletions.
36 changes: 19 additions & 17 deletions apps/docs/content/components/time-input/end-content.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
import {TimeInput} from "@nextui-org/react";
import {Time} from "@internationalized/date";

export const ClockCircleLinearIcon = (props) => (
<svg
aria-hidden="true"
fill="none"
focusable="false"
height="1em"
role="presentation"
viewBox="0 0 24 24"
width="1em"
{...props}
>
<g fill="none" stroke="currentColor" strokeWidth="1.5">
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4l2.5 2.5" strokeLinecap="round" strokeLinejoin="round" />
</g>
</svg>
);
export const ClockCircleLinearIcon = (props) => {
return (
<svg
aria-hidden="true"
fill="none"
focusable="false"
height="1em"
role="presentation"
viewBox="0 0 24 24"
width="1em"
{...props}
>
<g fill="none" stroke="currentColor" strokeWidth="1.5">
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4l2.5 2.5" strokeLinecap="round" strokeLinejoin="round" />
</g>
</svg>
);
};

export default function App() {
return (
Expand Down
36 changes: 19 additions & 17 deletions apps/docs/content/components/time-input/start-content.raw.jsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
import {TimeInput} from "@nextui-org/react";
import {Time} from "@internationalized/date";

export const ClockCircleLinearIcon = (props) => (
<svg
aria-hidden="true"
fill="none"
focusable="false"
height="1em"
role="presentation"
viewBox="0 0 24 24"
width="1em"
{...props}
>
<g fill="none" stroke="currentColor" strokeWidth="1.5">
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4l2.5 2.5" strokeLinecap="round" strokeLinejoin="round" />
</g>
</svg>
);
export const ClockCircleLinearIcon = (props) => {
return (
<svg
aria-hidden="true"
fill="none"
focusable="false"
height="1em"
role="presentation"
viewBox="0 0 24 24"
width="1em"
{...props}
>
<g fill="none" stroke="currentColor" strokeWidth="1.5">
<circle cx="12" cy="12" r="10" />
<path d="M12 8v4l2.5 2.5" strokeLinecap="round" strokeLinejoin="round" />
</g>
</svg>
);
};

export default function App() {
return (
Expand Down

0 comments on commit f49a6fd

Please sign in to comment.