fix steps

This commit is contained in:
Hristo Nedelkov 2023-10-06 14:10:42 +03:00
parent 134dd0e796
commit 6f16789932
2 changed files with 2 additions and 4 deletions

View File

@ -17,5 +17,5 @@ export default meta
type Story = StoryObj<typeof meta> type Story = StoryObj<typeof meta>
export const Default: Story = { export const Default: Story = {
args: {}, args: {advisoriesIcons: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'], subStepAdvisories: 0},
} }

View File

@ -25,9 +25,7 @@ const Advisories = ({ advisoriesIcons, subStepAdvisories }: AdvisoriesProps) =>
const index = topics.indexOf(currentTitle); const index = topics.indexOf(currentTitle);
return index <= subStepAdvisories ? true : false; return index <= subStepAdvisories ? true : false;
} }
const isSameTitle = (title: string) => selectedTitle === title
return ( return (
<XStack <XStack
style={{ padding: '30px 33px', justifyContent: 'space-between' }} style={{ padding: '30px 33px', justifyContent: 'space-between' }}