We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 145ebdc commit 02d817eCopy full SHA for 02d817e
packages/react-clock/src/Clock.tsx
@@ -190,7 +190,7 @@ export type ClockProps = {
190
/**
191
* Displays a complete clock.
192
*/
193
-const Clock: React.FC<ClockProps> = function Clock({
+export default function Clock({
194
className,
195
formatHour,
196
hourHandLength = 50,
@@ -215,7 +215,7 @@ const Clock: React.FC<ClockProps> = function Clock({
215
size = 150,
216
useMillisecondPrecision,
217
value,
218
-}) {
+}: ClockProps) {
219
function renderMinuteMarksFn() {
220
if (!renderMinuteMarks) {
221
return null;
@@ -351,6 +351,4 @@ const Clock: React.FC<ClockProps> = function Clock({
351
{renderSecondHandFn()}
352
</time>
353
);
354
-};
355
-
356
-export default Clock;
+}
0 commit comments