Skip to content

Commit

Permalink
Remove useless hook call (twentyhq#7278)
Browse files Browse the repository at this point in the history
Hook is no longer used after twentyhq#7236
  • Loading branch information
Devessier authored Sep 30, 2024
1 parent dd24662 commit eb04925
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { SettingsServerlessFunctionsFieldItemTableRow } from '@/settings/serverless-functions/components/SettingsServerlessFunctionsFieldItemTableRow';
import { SettingsServerlessFunctionsTableEmpty } from '@/settings/serverless-functions/components/SettingsServerlessFunctionsTableEmpty';
import { useGetManyServerlessFunctions } from '@/settings/serverless-functions/hooks/useGetManyServerlessFunctions';
import { SettingsServerlessFunctionHotkeyScope } from '@/settings/serverless-functions/types/SettingsServerlessFunctionHotKeyScope';
import { getSettingsPagePath } from '@/settings/utils/getSettingsPagePath';
import { SettingsPath } from '@/types/SettingsPath';
import { Table } from '@/ui/layout/table/components/Table';
Expand All @@ -10,7 +9,6 @@ import { TableHeader } from '@/ui/layout/table/components/TableHeader';
import { TableRow } from '@/ui/layout/table/components/TableRow';
import styled from '@emotion/styled';
import { ServerlessFunction } from '~/generated-metadata/graphql';
import { useHotkeyScopeOnMount } from '~/hooks/useHotkeyScopeOnMount';

const StyledTableRow = styled(TableRow)`
grid-template-columns: 312px 132px 68px;
Expand All @@ -23,10 +21,6 @@ const StyledTableBody = styled(TableBody)`
export const SettingsServerlessFunctionsTable = () => {
const { serverlessFunctions } = useGetManyServerlessFunctions();

useHotkeyScopeOnMount(
SettingsServerlessFunctionHotkeyScope.ServerlessFunction,
);

return (
<>
{serverlessFunctions.length ? (
Expand Down

0 comments on commit eb04925

Please sign in to comment.