Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/pages/workspace/rules/RulesCustomNamePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ScreenWrapper from '@components/ScreenWrapper';
import Text from '@components/Text';
import TextInput from '@components/TextInput';
import TextLink from '@components/TextLink';
import useAutoFocusInput from '@hooks/useAutoFocusInput';
import useLocalize from '@hooks/useLocalize';
import usePolicy from '@hooks/usePolicy';
import useThemeStyles from '@hooks/useThemeStyles';
Expand All @@ -30,7 +31,7 @@ function RulesCustomNamePage({route}: RulesCustomNamePageProps) {

const {translate} = useLocalize();
const styles = useThemeStyles();

const {inputCallbackRef} = useAutoFocusInput();
Copy link
Copy Markdown
Contributor

@aimane-chnaif aimane-chnaif Sep 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add line space back

image

const RULE_EXAMPLE_BULLET_POINTS = [
translate('workspace.rules.expenseReportRules.customNameEmailPhoneExample'),
translate('workspace.rules.expenseReportRules.customNameStartDateExample'),
Expand Down Expand Up @@ -95,6 +96,7 @@ function RulesCustomNamePage({route}: RulesCustomNamePageProps) {
label={translate('workspace.rules.expenseReportRules.customNameInputLabel')}
aria-label={translate('workspace.rules.expenseReportRules.customNameInputLabel')}
maxLength={CONST.WORKSPACE_NAME_CHARACTER_LIMIT}
ref={inputCallbackRef}
/>
<BulletList
items={RULE_EXAMPLE_BULLET_POINTS}
Expand Down