-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Select price category for a signup
- Loading branch information
1 parent
0a4368b
commit 24558ad
Showing
39 changed files
with
821 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/common/components/comboboxLoadingSpinner/ComboboxLoadingSpinner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import classNames from 'classnames'; | ||
import { FC, PropsWithChildren } from 'react'; | ||
|
||
import LoadingSpinner from '../loadingSpinner/LoadingSpinner'; | ||
|
||
import styles from './comboboxLoadingSpinner.module.scss'; | ||
|
||
export type ComboboxLoadingSpinnerProps = { | ||
isLoading?: boolean; | ||
}; | ||
|
||
const ComboboxLoadingSpinner: FC< | ||
PropsWithChildren<ComboboxLoadingSpinnerProps> | ||
> = ({ children, isLoading }) => { | ||
return ( | ||
<div className={styles.comboboxLoadingSpinner}> | ||
{children} | ||
{isLoading && ( | ||
<div className={classNames(styles.loadingSpinnerWrapper)}> | ||
<LoadingSpinner | ||
className={styles.loadingSpinner} | ||
isLoading={isLoading} | ||
small={true} | ||
/> | ||
</div> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default ComboboxLoadingSpinner; |
13 changes: 13 additions & 0 deletions
13
src/common/components/comboboxLoadingSpinner/comboboxLoadingSpinner.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.comboboxLoadingSpinner { | ||
position: relative; | ||
} | ||
|
||
.loadingSpinnerWrapper { | ||
position: absolute; | ||
top: 2.75rem; | ||
right: var(--spacing-2-xl); | ||
} | ||
|
||
.loadingSpinner { | ||
padding: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { OptionType } from '../../types'; | ||
import { LocalisedObject, Meta, stringOrNull } from '../api/types'; | ||
|
||
export type PriceGroup = { | ||
id: number; | ||
created_by: stringOrNull; | ||
created_time: stringOrNull; | ||
description: LocalisedObject; | ||
is_free: boolean; | ||
last_modified_by: stringOrNull; | ||
last_modified_time: stringOrNull; | ||
publisher: stringOrNull; | ||
}; | ||
|
||
export type PriceGroupDense = { | ||
id: number; | ||
description: LocalisedObject; | ||
}; | ||
|
||
export type RegistrationPriceGroup = { | ||
id: number; | ||
price_group: PriceGroupDense; | ||
price: stringOrNull; | ||
vat_percentage: stringOrNull; | ||
price_without_vat: stringOrNull; | ||
vat: stringOrNull; | ||
}; | ||
|
||
export type PriceGroupsQueryVariables = { | ||
description?: string; | ||
isFree?: boolean; | ||
page?: number; | ||
pageSize?: number; | ||
publisher?: string[]; | ||
}; | ||
|
||
export type PriceGroupsResponse = { | ||
meta: Meta; | ||
data: PriceGroup[]; | ||
}; | ||
|
||
export type PriceGroupOption = OptionType & { isFree: boolean }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.