Skip to content

Commit

Permalink
chore: pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nastyastavitskaya committed Aug 28, 2024
1 parent 164fcd6 commit dfe5276
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import './suite-selector.css'
import { ConfigProvider } from 'antd'
import React from 'react'
import { Button, Col, Flex, Row } from 'src/components'
import { Button, Col, Row } from 'src/components'
import {
type ISuiteSelectorOptions,
type SuiteLink,
Expand All @@ -21,7 +20,7 @@ export function SuiteSelectorContent(props: ISuiteSelectorContentProps) {
}

return (
<ConfigProvider>
<>
<div className="u-padding-xxs">
<Row gutter={[0, 4]} className="suiteSelector__content">
{props.links.map(link => (
Expand All @@ -40,17 +39,15 @@ export function SuiteSelectorContent(props: ISuiteSelectorContentProps) {

{renderOverviewButton()}
</div>
</ConfigProvider>
</>
)

function renderOverviewButton() {
return (
<>
<Flex align="center" justify="start">
<Button type="primary" href={props.overviewHref || '/'}>
Go to Overview
</Button>
</Flex>
<Button type="primary" href={props.overviewHref || '/'}>
Go to Overview
</Button>
</>
)
}
Expand Down

0 comments on commit dfe5276

Please sign in to comment.