Skip to content

Commit

Permalink
Typo correction (#4688)
Browse files Browse the repository at this point in the history
* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 8e1db47)
  • Loading branch information
Juan Carlos Tello authored and AlexRuiz7 committed Nov 18, 2022
1 parent 2579ab2 commit bc21e48
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion public/components/agents/fim/inventory/filterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class FilterBar extends Component {
{
type: 'q',
label: 'uid',
description: 'Id of the onwner file',
description: 'Id of the owner file',
operators: ['=', '!=', '~'],
values: async (value) => getFilterValues('uid', value, this.props.agent.id),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const PromptAgentFeatureVersion = ({ version = '' }: { version: string })
<EuiEmptyPrompt
iconType="watchesApp"
title={<h2>{`Agent doesn't support this feature`}</h2>}
body={`This feature is only avaliable for agents with ${version}.`}
body={`This feature is only available for agents with ${version}.`}
/>
);
};
6 changes: 3 additions & 3 deletions public/components/agents/sca/inventory.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - Iventory component
* Wazuh app - Inventory component
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -578,7 +578,7 @@ export class Inventory extends Component<InventoryProps, InventoryState> {
<EuiFlexItem>
<InventoryPolicyChecksTable
agent={this.props.agent}
lookingPolicy={this.state.lookingPolicy}
lookingPolicy={this.state.lookingPolicy}
/>
</EuiFlexItem>
</EuiFlexGroup>
Expand All @@ -593,4 +593,4 @@ export class Inventory extends Component<InventoryProps, InventoryState> {

Inventory.defaultProps = {
onClickRow: undefined
}
}
4 changes: 2 additions & 2 deletions public/components/common/hocs/withButtonOpenOnClick.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - React HOC to add open modal/flyout logic to othe component
* Wazuh app - React HOC to add open modal/flyout logic to other component
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -32,4 +32,4 @@ export const withButtonOpenOnClick = WrappedComponent => ({render, onClick, onCl
)}
</>
)
}
}
4 changes: 2 additions & 2 deletions public/components/common/hocs/withGlobalBreadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ type TBreadcrumbSection = {text: string, href?: string} | { agent: any };
type TBreadcrumb = TBreadcrumbSection[];
type TBreadcrumbParameter = TBreadcrumb | ((props: any) => TBreadcrumb);

// It retuns user permissions
// It returns user permissions
export const withGlobalBreadcrumb = (breadcrumb : TBreadcrumbParameter) => WrappedComponent => props => {
useGlobalBreadcrumb(typeof breadcrumb === 'function' ? breadcrumb(props) : breadcrumb);
return <WrappedComponent {...props} />
}
}
4 changes: 2 additions & 2 deletions public/components/common/hocs/with_module_tab_loader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - React HOC to show a loader used for Dashboard adn Events module tabs
* Wazuh app - React HOC to show a loader used for Dashboard and Events module tabs
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -39,4 +39,4 @@ export const withModuleTabLoader = WrappedComponent => props => {
</div>
</>
)
}
}
2 changes: 1 addition & 1 deletion public/components/common/modules/panel/main-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const MainPanel = ({ sidePanelChildren, tab = 'general', moduleConfig = {
}, [viewId]);

/**
* When a filter is toggled applies de selection
* When a filter is toggled applies the selection
*/
const applyFilter = (clearOnly = false) => {
const newFilters = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const ScaScan = compose(
<Fragment>
<EuiEmptyPrompt
iconType="visVega"
title={<h4>You dont have SCA scans in this agent.</h4>}
title={<h4>You don't have SCA scans in this agent.</h4>}
body={
<Fragment>
<p>
Expand Down
2 changes: 1 addition & 1 deletion public/components/health-check/components/check-result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function CheckResult(props) {
};

/**
* validate if the current check is not started and if the dependentes checks are ready
* validate if the current check is not started and if the depending checks are ready
*/
const awaitForIsReady = () => {
return !isCheckStarted && (props.awaitFor.length === 0 || props.awaitFor.every((check) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - React component that shows the searching resutls of Mitre Att&ck resources
* Wazuh app - React component that shows the searching results of Mitre Att&ck resources
*
* Copyright (C) 2015-2022 Wazuh, Inc.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Wazuh app - Mitre Att&ck resouces.
* Wazuh app - Mitre Att&ck resources.
*
* Copyright (C) 2015-2022 Wazuh, Inc.
*
Expand Down
4 changes: 2 additions & 2 deletions public/components/security/roles/edit-role-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const EditRolesTable = ({ policies, role, onChange, isDisabled, loading})
setIsLoading(false);
return;
}
ErrorHandler.info(`Policy was successfull removed from role ${role.name}`);
ErrorHandler.info(`Policy was successfully removed from role ${role.name}`);
await onChange();
}catch(err){ }
setIsLoading(false);
Expand Down Expand Up @@ -141,4 +141,4 @@ export const EditRolesTable = ({ policies, role, onChange, isDisabled, loading})
/>
</>
);
};
};
2 changes: 1 addition & 1 deletion public/components/wz-search-bar/wz-search-badges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class WzSearchBadges extends Component {
color="hollow"
iconOnClick={() => this.onDeleteFilter(filter)}>
<EuiButtonEmpty color='text' size="xs">
{`${filter.field}: ${filter.value} puto`}
{`${filter.field}: ${filter.value}`}
</EuiButtonEmpty>
</EuiBadge>
</EuiFlexItem>
Expand Down
4 changes: 2 additions & 2 deletions public/components/wz-search-bar/wz-search-bar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from 'react';
import { CASES_SEARCHBAR } from './wz-search-bar.test-cases';

const getSuggestionsFilters = async (field, value, filters = {}) => {
// here is returned filter to call api and get sugguestions
// here is returned filter to call api and get suggestions
return Promise.resolve([]);
};

Expand Down Expand Up @@ -152,7 +152,7 @@ describe('WzSearchBar', () => {
});

inputs.forEach((filterText, index) => {
// check all badgets created
// check all badges created
expect(getByTestId(`${WZ_SEARCH_BADGE_NAME}-${index}`)).toHaveTextContent(filterText);
expect(getByText(filterText)).toBeInTheDocument();
});
Expand Down

0 comments on commit bc21e48

Please sign in to comment.