From 90f9edea95187819e6f07a8503212df0c07abf53 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns Date: Thu, 30 May 2024 21:38:37 +0530 Subject: [PATCH] feat(components): use arrow function --- ui/components/SettingsDialog.tsx | 8 ++++---- ui/components/Sidebar.tsx | 4 ++-- ui/components/theme/Provider.tsx | 6 +++--- ui/components/theme/Switcher.tsx | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ui/components/SettingsDialog.tsx b/ui/components/SettingsDialog.tsx index 4731331..8524aed 100644 --- a/ui/components/SettingsDialog.tsx +++ b/ui/components/SettingsDialog.tsx @@ -11,7 +11,7 @@ import React, { interface InputProps extends React.InputHTMLAttributes {} -function Input({ className, ...restProps }: InputProps) { +const Input = ({ className, ...restProps }: InputProps) => { return ( ); -} +}; interface SelectProps extends SelectHTMLAttributes { options: { value: string; label: string; disabled?: boolean }[]; } -function Select({ className, options, ...restProps }: SelectProps) { +const Select = ({ className, options, ...restProps }: SelectProps) => { return (