Skip to content

Commit

Permalink
add: confirm button
Browse files Browse the repository at this point in the history
  • Loading branch information
majkshkurti committed Jun 18, 2024
1 parent 5327048 commit ce06759
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions app/component/TopLevel.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import getContext from 'recompose/getContext';
import Modal from '@hsl-fi/modal';
import Select from 'react-select';
import { intlShape } from 'react-intl';
// import styles from '@digitransit-component/digitransit-component-favourite-modal/src/helpers/
import { RoutingProfileDropDownOptions } from '../constants';
import {
getHomeUrl,
Expand Down Expand Up @@ -237,6 +238,23 @@ class TopLevel extends React.Component {
label: this.context.intl.formatMessage({ id: option.title }),
}))}
/>
<div
className={cx(
'route-type-preference-confirm-container',
this.isMobile() && 'mobile',
)}
>
<button
type="button"
className={cx('favourite-modal-desktop-button')}
onClick={() => {
this.setState({ showPopup: false });
markPopupAsSeen();
}}
>
Bestätigen
</button>
</div>
</Modal>
);
}
Expand Down
11 changes: 11 additions & 0 deletions app/component/route.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1470,3 +1470,14 @@ nav.top-bar .title .route-number {
display: flex;
flex-direction: column;
}

.route-type-preference-confirm-container {
display: flex;
justify-content: flex-end;
margin-top: 40px;
margin-bottom: -40px;
margin-right: -50px;
&.mobile {
margin-right: 0px
}
}

0 comments on commit ce06759

Please sign in to comment.