Skip to content

Commit 137037d

Browse files
committed
FE: Fix typos
1 parent 353bbc2 commit 137037d

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

frontend/src/components/common/Fts/Fts.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export const IconWrapper = styled.span.attrs<{ active: boolean }>(() => ({
2121
`;
2222

2323
const Fts = ({ resourceName }: { resourceName: FtsAvailableResource }) => {
24-
const { ftsEnabled: isFtsFetureEnabled } = React.useContext(ClusterContext);
24+
const { ftsEnabled: isFtsFeatureEnabled } = React.useContext(ClusterContext);
2525
const { handleSwitch, isFtsEnabled } = useFts(resourceName);
2626

27-
if (!isFtsFetureEnabled) {
27+
if (!isFtsFeatureEnabled) {
2828
return null;
2929
}
3030

frontend/src/components/common/Fts/useFts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const useFts = (resourceName: FtsAvailableResource) => {
6666

6767
return {
6868
handleSwitch,
69-
isFtsFetureEnabled: isFtsFeatureEnabled,
69+
isFtsFeatureEnabled,
7070
isFtsEnabled,
7171
};
7272
};

frontend/src/lib/hooks/api/kafkaConnect.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,19 @@ const connectorsKey = (
3030
search?: string,
3131
fts?: boolean
3232
) => {
33-
const base = ['clusters', clusterName, 'connectors', fts, 'fts'];
33+
let base: Array<string | { search: string } | { fts: boolean }> = [
34+
'clusters',
35+
clusterName,
36+
'connectors',
37+
];
3438
if (search) {
35-
return [...base, { search }];
39+
base = [...base, { search }];
3640
}
41+
42+
if (fts) {
43+
base = [...base, { fts }];
44+
}
45+
3746
return base;
3847
};
3948
const connectorKey = (props: UseConnectorProps) => [

0 commit comments

Comments
 (0)