From 432de2fc697afd29191a715dd7125c0429a2525d Mon Sep 17 00:00:00 2001 From: Clarence Date: Mon, 8 Jan 2024 06:49:28 +0100 Subject: [PATCH] chore: clean up on empty className attributes (#20203) clean up on empty className attrib Co-authored-by: Alaister Young --- .../components/Navigation/NavigationMenu/TopNavBar.tsx | 2 +- apps/docs/components/Options.tsx | 2 +- apps/docs/components/StepHike/index.tsx | 2 +- apps/docs/components/reference/CLICommandSection.tsx | 2 +- apps/docs/components/reference/RefFunctionSection.tsx | 2 +- .../enrichments/cli/CliGlobalFlagsHandler.tsx | 2 +- apps/docs/pages/guides/cli/config.tsx | 4 ++-- .../guides/getting-started/tutorials/with-nextjs.mdx | 2 +- .../interfaces/Auth/Policies/PolicyEditor/index.tsx | 2 +- .../PolicyEditorModal/PolicyEditorModalTitle.tsx | 2 +- .../Auth/Policies/PolicyEditorModal/index.tsx | 2 +- .../interfaces/Database/Backups/BackupItem.tsx | 2 +- .../interfaces/Database/Functions/CreateFunction.tsx | 2 +- .../Database/Hooks/HooksList/SchemaTable.tsx | 2 +- .../interfaces/Database/Triggers/CreateTrigger.tsx | 2 +- .../components/interfaces/Functions/CommandRender.tsx | 2 +- .../interfaces/Functions/EdgeFunctionsListItem.tsx | 4 ++-- .../interfaces/Integrations/IntegrationPanels.tsx | 2 +- .../components/interfaces/Settings/Addons/Addons.tsx | 6 +++--- .../NetworkRestrictions/AddRestrictionModal.tsx | 1 - .../VercelIntegrationConnectionForm.tsx | 10 +++++----- .../interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx | 6 +++--- .../components/layouts/StorageLayout/StorageMenu.tsx | 2 +- .../Storage/StorageExplorer/FileExplorerRowEditing.tsx | 2 +- .../StoragePolicies/StoragePoliciesEditPolicyModal.tsx | 2 +- .../Storage/StoragePolicies/StoragePoliciesEditor.tsx | 2 +- .../vercel/[slug]/deploy-button/new-project.tsx | 2 +- apps/studio/pages/project/[ref]/api/index.tsx | 2 +- .../project/[ref]/functions/[functionSlug]/index.tsx | 2 +- apps/studio/pages/projects.tsx | 2 +- apps/studio/pages/vercel/setupOrg.tsx | 4 ++-- apps/studio/pages/vercel/setupProject.tsx | 2 +- apps/www/components/BackedBy.tsx | 4 ---- .../components/Carousels/SplitCodeBlockCarousel.tsx | 2 +- .../components/LaunchWeek/7/LaunchSection/index.tsx | 2 +- .../www/components/LaunchWeek/8/LW8CalloutsSection.tsx | 4 ++-- apps/www/components/LaunchWeek/X/LWXSummary.tsx | 2 +- .../LaunchWeek/X/Releases/components/DaySection.tsx | 2 +- .../components/LaunchWeek/X/Ticket/TicketingFlow.tsx | 4 ++-- apps/www/components/MfaContactForm.tsx | 2 +- apps/www/components/OpenSource/RepoCard.tsx | 2 +- apps/www/components/OpenSource/Sponsorships.tsx | 1 - apps/www/components/Pricing/ComputePricingModal.tsx | 6 +++--- apps/www/components/SOC2RequestForm.tsx | 2 +- apps/www/components/Sections/TimedTabsSection.tsx | 4 +--- apps/www/components/Sponsors.tsx | 2 +- apps/www/layouts/comparison.tsx | 2 +- apps/www/pages/beta.tsx | 2 +- apps/www/pages/careers/index.tsx | 2 +- apps/www/pages/company.tsx | 4 ++-- apps/www/pages/customers/[slug].tsx | 2 +- apps/www/pages/launch-week/8/tickets/[username].tsx | 2 +- apps/www/pages/launch-week/8/tickets/index.tsx | 2 +- apps/www/pages/launch-week/tickets/index.tsx | 2 +- apps/www/pages/realtime/Realtime.tsx | 2 +- .../nextjs-user-management/app/page.tsx | 2 +- packages/ui/src/components/Command/CommandMenu.tsx | 2 +- packages/ui/src/components/Select/Select.tsx | 2 +- packages/ui/src/lib/Layout/InputErrorIcon.tsx | 2 +- 59 files changed, 72 insertions(+), 80 deletions(-) diff --git a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx index b430e943525..7d0070fb107 100644 --- a/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx +++ b/apps/docs/components/Navigation/NavigationMenu/TopNavBar.tsx @@ -93,7 +93,7 @@ const TopNavBar: FC = () => { " >
- +

Search docs...

diff --git a/apps/docs/components/Options.tsx b/apps/docs/components/Options.tsx index 5e4be00ea80..7612b0bea1a 100644 --- a/apps/docs/components/Options.tsx +++ b/apps/docs/components/Options.tsx @@ -27,7 +27,7 @@ const Options: FC> & OptionsSubComponents = (props) ].join(' ')} onClick={() => setOpen(!open)} > -
+
diff --git a/apps/docs/components/StepHike/index.tsx b/apps/docs/components/StepHike/index.tsx index a4e302f5389..42b04bcff42 100644 --- a/apps/docs/components/StepHike/index.tsx +++ b/apps/docs/components/StepHike/index.tsx @@ -24,7 +24,7 @@ const StepHike = ({ children, title }) => { throw 'StepHike component needs at least 1 child' return ( -
+
{children}
) diff --git a/apps/docs/components/reference/CLICommandSection.tsx b/apps/docs/components/reference/CLICommandSection.tsx index 8313709c0c1..17000f9a94f 100644 --- a/apps/docs/components/reference/CLICommandSection.tsx +++ b/apps/docs/components/reference/CLICommandSection.tsx @@ -108,7 +108,7 @@ const CliCommandSection = (props) => { {commandFlags.length > 0 && ( <>

Flags

-
    +
      {commandFlags.map((flag: Flag) => ( <>
    • diff --git a/apps/docs/components/reference/RefFunctionSection.tsx b/apps/docs/components/reference/RefFunctionSection.tsx index cbdf09e8a39..c95f080134c 100644 --- a/apps/docs/components/reference/RefFunctionSection.tsx +++ b/apps/docs/components/reference/RefFunctionSection.tsx @@ -55,7 +55,7 @@ const RefFunctionSection: React.FC = (props) => { {parameters && (
      Parameters
      -
        +
          {parameters.map((param) => { // grab override params from yaml file const overrideParams = item.overrideParams diff --git a/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx b/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx index af8c42eb1c6..1e325512f28 100644 --- a/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx +++ b/apps/docs/components/reference/enrichments/cli/CliGlobalFlagsHandler.tsx @@ -9,7 +9,7 @@ const CliGlobalFlagsHandler = () => {

          Flags

          -
            +
              {spec.flags.map((flag) => { return (
              -

              CLI configuration

              +

              CLI configuration

              {specFile.info.description}
              {content}
              @@ -61,7 +61,7 @@ function Info({ parameter }: { parameter: Parameter }) {
              -
              +
              diff --git a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx index 4c0559c0a53..3aafba7f7e5 100644 --- a/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx +++ b/apps/docs/pages/guides/getting-started/tutorials/with-nextjs.mdx @@ -264,7 +264,7 @@ export default function Home() {

              Supabase Auth + Storage

              -

              +

              Experience our Auth and Storage through a simple profile management example. Create a user profile and upload an avatar image. Fast, simple, secure.

              diff --git a/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/index.tsx b/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/index.tsx index 341e3c28858..77d19c4339d 100644 --- a/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/index.tsx +++ b/apps/studio/components/interfaces/Auth/Policies/PolicyEditor/index.tsx @@ -32,7 +32,7 @@ const PolicyEditor = ({ const selectedRoles = (policyFormFields?.roles ?? []).filter((role: string) => role !== 'public') return ( -
              +
              +
              -
              +

              {generateBackupName(backup)}

              -
              {generateSideButtons(backup)}
              +
              {generateSideButtons(backup)}
              ) } diff --git a/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx index 498a5162331..bdc62c9c3b3 100644 --- a/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx +++ b/apps/studio/components/interfaces/Database/Functions/CreateFunction.tsx @@ -499,7 +499,7 @@ const InputMultiArguments = observer(({ readonly }: InputMultiArgumentsProps) => ) )} {!readonly && ( -
              +
              diff --git a/apps/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx b/apps/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx index fb7030d46df..a02e2c35477 100644 --- a/apps/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx +++ b/apps/studio/components/interfaces/Database/Hooks/HooksList/SchemaTable.tsx @@ -18,7 +18,7 @@ const SchemaTable = ({ deleteHook = noop, }: SchemaTableProps) => { return ( -
              +
              schema
              diff --git a/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx b/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx index 462bb509098..a29b5deecc2 100644 --- a/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx +++ b/apps/studio/components/interfaces/Database/Triggers/CreateTrigger.tsx @@ -347,7 +347,7 @@ const CreateTrigger = ({ trigger, visible, setVisible }: CreateTriggerProps) => onConfirm={handleSubmit} > {hasPublicTables ? ( -
              +
              {_localState.isEditing ? ( diff --git a/apps/studio/components/interfaces/Functions/CommandRender.tsx b/apps/studio/components/interfaces/Functions/CommandRender.tsx index fede05f8ecf..abe2d70ae33 100644 --- a/apps/studio/components/interfaces/Functions/CommandRender.tsx +++ b/apps/studio/components/interfaces/Functions/CommandRender.tsx @@ -22,7 +22,7 @@ const Command = ({ item }: any) => {
              $ - {item.jsx ? item.jsx() : null} + {item.jsx ? item.jsx() : null}
              ) } diff --git a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx index e71dec5fc7a..17c9f084cbb 100644 --- a/apps/studio/components/interfaces/Settings/Addons/Addons.tsx +++ b/apps/studio/components/interfaces/Settings/Addons/Addons.tsx @@ -193,7 +193,7 @@ const Addons = () => {

              Current option:

              -

              {computeInstance?.variant.name ?? 'Micro'}

              +

              {computeInstance?.variant.name ?? 'Micro'}

              {

              Current option:

              -

              +

              {pitr !== undefined ? `Point in time recovery of ${pitr.variant.meta?.backup_duration_days} days is enabled` : 'Point in time recovery is not enabled'} @@ -477,7 +477,7 @@ const Addons = () => {

              Current option:

              -

              +

              {customDomain !== undefined ? 'Custom domain is enabled' : 'Custom domain is not enabled'} diff --git a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx index 55edd6406ba..79993d75263 100644 --- a/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx +++ b/apps/studio/components/interfaces/Settings/Database/NetworkRestrictions/AddRestrictionModal.tsx @@ -137,7 +137,6 @@ const AddRestrictionModal = ({ id="ipAddress" name="ipAddress" placeholder="0.0.0.0" - className="" />

              diff --git a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx index 204ce0aefc3..e4574e7045b 100644 --- a/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx +++ b/apps/studio/components/interfaces/Settings/Integrations/VercelIntegration/VercelIntegrationConnectionForm.tsx @@ -92,7 +92,7 @@ const VercelIntegrationConnectionForm = ({ return (
              - + Vercel Connection configuration coming soon @@ -115,7 +115,7 @@ const VercelIntegrationConnectionForm = ({ name="environmentVariablesProduction" render={({ field }) => ( -
              +
              Sync environment variables for Vercel Production deployments @@ -142,7 +142,7 @@ const VercelIntegrationConnectionForm = ({ name="authRedirectUrisProduction" render={({ field }) => ( -
              +
              Auto update Auth Redirect URIs for Vercel Production Deployments @@ -172,7 +172,7 @@ const VercelIntegrationConnectionForm = ({ name="environmentVariablesPreview" render={({ field }) => ( -
              +
              Sync environment variables for Vercel Preview Deployments @@ -199,7 +199,7 @@ const VercelIntegrationConnectionForm = ({ name="authRedirectUrisPreview" render={({ field }) => ( -
              +
              Auto update Auth Redirect URIs for Vercel Preview Deployments diff --git a/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx b/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx index e1a9861eb03..c875f18185d 100644 --- a/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx +++ b/apps/studio/components/interfaces/Settings/Logs/Logs.SavedQueriesItem.tsx @@ -29,13 +29,13 @@ const SavedQueriesItem = ({ item }: SavedQueriesItemProps) => { {item.name}
              - + {item.description} - + {timestampLocalFormatter(item.inserted_at)} - + {timestampLocalFormatter(item.updated_at)} diff --git a/apps/studio/components/layouts/StorageLayout/StorageMenu.tsx b/apps/studio/components/layouts/StorageLayout/StorageMenu.tsx index 1b2b39cb9e5..bf51e179f43 100644 --- a/apps/studio/components/layouts/StorageLayout/StorageMenu.tsx +++ b/apps/studio/components/layouts/StorageLayout/StorageMenu.tsx @@ -141,7 +141,7 @@ const StorageMenu = () => { )}
              -
              +
              diff --git a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRowEditing.tsx b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRowEditing.tsx index 0a8b23c0ca4..bf55400b800 100644 --- a/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRowEditing.tsx +++ b/apps/studio/components/to-be-cleaned/Storage/StorageExplorer/FileExplorerRowEditing.tsx @@ -51,7 +51,7 @@ const FileExplorerRowEditing = ({ item, view, columnIndex }: FileExplorerRowEdit return (
              -
              +
              +
              +
              { ) return ( -
              +

              Supabase project details

              { autoApiService={autoApiService} />
              -
              +
              {resource ? ( { Statistics for past {selectedInterval.label}
              -
              +
              { {IS_PLATFORM && projectCreationEnabled && isSuccess && organizations.length !== 0 && (
              -
              +
              diff --git a/apps/studio/pages/vercel/setupOrg.tsx b/apps/studio/pages/vercel/setupOrg.tsx index 9a281fbda14..1926a41714f 100644 --- a/apps/studio/pages/vercel/setupOrg.tsx +++ b/apps/studio/pages/vercel/setupOrg.tsx @@ -87,7 +87,7 @@ const CreateOrganization = observer(({}) => { }) return ( -
              +
              {(organizations?.length ?? 0) > 0 ? (

              Create a new organization

              ) : ( @@ -151,7 +151,7 @@ const OrgSelection = observer(({}) => { } return ( -
              +
              +

              Allow fetch something

              diff --git a/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx b/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx index 10a4f348c7b..1bf9d786c03 100644 --- a/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx +++ b/apps/www/components/LaunchWeek/7/LaunchSection/index.tsx @@ -124,7 +124,7 @@ export const LaunchSection = (props: WeekDayProps) => {
              } > -
              +