diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-09-28 22:19:31 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-09-29 16:16:39 +0530 |
| commit | 34b8c1f962a5c835351dc6f4369757259998af16 (patch) | |
| tree | 6f836fdaaedfec125b1202f3b5f9ce24e6277f11 /src/components/Clock.tsx | |
| parent | a1143f3696a0b272018f7eea43ee23a674c618e1 (diff) | |
| download | daft-launcher-34b8c1f962a5c835351dc6f4369757259998af16.tar.gz daft-launcher-34b8c1f962a5c835351dc6f4369757259998af16.zip | |
Finish up app menu + fix drag interaction
Diffstat (limited to 'src/components/Clock.tsx')
| -rw-r--r-- | src/components/Clock.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Clock.tsx b/src/components/Clock.tsx index 619a31b..f41a298 100644 --- a/src/components/Clock.tsx +++ b/src/components/Clock.tsx @@ -1,7 +1,7 @@ import React, {useEffect, useMemo, useState} from 'react'; import {Text, View} from 'react-native'; -export const Clock: React.FC = () => { +export const Clock: React.FC = React.memo(() => { const [date, setDate] = useState(() => new Date()); useEffect(() => { const interval = setInterval(() => { @@ -34,4 +34,4 @@ export const Clock: React.FC = () => { <Text className="text-lg">{dateText}</Text> </View> ); -}; +}); |
