Skip to content

Commit 02d817e

Browse files
committed
Remove explicit React.FC type declaration
1 parent 145ebdc commit 02d817e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/react-clock/src/Clock.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export type ClockProps = {
190190
/**
191191
* Displays a complete clock.
192192
*/
193-
const Clock: React.FC<ClockProps> = function Clock({
193+
export default function Clock({
194194
className,
195195
formatHour,
196196
hourHandLength = 50,
@@ -215,7 +215,7 @@ const Clock: React.FC<ClockProps> = function Clock({
215215
size = 150,
216216
useMillisecondPrecision,
217217
value,
218-
}) {
218+
}: ClockProps) {
219219
function renderMinuteMarksFn() {
220220
if (!renderMinuteMarks) {
221221
return null;
@@ -351,6 +351,4 @@ const Clock: React.FC<ClockProps> = function Clock({
351351
{renderSecondHandFn()}
352352
</time>
353353
);
354-
};
355-
356-
export default Clock;
354+
}

0 commit comments

Comments
 (0)