convert const function to function

This commit is contained in:
Ren Amamiya
2023-05-10 15:48:24 +07:00
parent ae5ff0c48f
commit 1a30c10806
32 changed files with 87 additions and 79 deletions

View File

@@ -1,6 +1,6 @@
import { useNetworkStatus } from '@lume/utils/hooks/useNetworkStatus';
export const NetworkStatusIndicator = () => {
export function NetworkStatusIndicator() {
const isOnline = useNetworkStatus();
return (
@@ -18,4 +18,4 @@ export const NetworkStatusIndicator = () => {
<p className="text-xs font-medium text-zinc-500">{isOnline ? 'Online' : 'Offline'}</p>
</div>
);
};
}