-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature/376-dropdown-component (#4593)
* Added dropdown-component
- Loading branch information
Showing
24 changed files
with
379 additions
and
183 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
58 changes: 35 additions & 23 deletions
58
...ppFrontend/react/altinn-app-frontend/__tests__/components/base/DropdownComponent.test.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
32 changes: 16 additions & 16 deletions
32
...tinn-app-frontend/__tests__/components/base/__snapshots__/DropdownComponent.test.tsx.snap
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`>>> components/base/DropdownComponent.tsx --- Snapshot >>> Capture snapshot of DropdownComponent 1`] = ` | ||
<select | ||
className="custom-select a-custom-select" | ||
id="mock-id" | ||
onChange={[Function]} | ||
value="" | ||
> | ||
<option | ||
value="test-1" | ||
<DocumentFragment> | ||
<select | ||
class="custom-select a-custom-select" | ||
id="mock-id" | ||
> | ||
test-label-1 | ||
</option> | ||
<option | ||
value="test-2" | ||
> | ||
test-label-2 | ||
</option> | ||
</select> | ||
<option | ||
value="some_value" | ||
> | ||
test | ||
</option> | ||
<option | ||
value="some_value_2" | ||
> | ||
test | ||
</option> | ||
</select> | ||
</DocumentFragment> | ||
`; |
2 changes: 1 addition & 1 deletion
2
src/Altinn.Apps/AppFrontend/react/altinn-app-frontend/package.json
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
2 changes: 1 addition & 1 deletion
2
src/Altinn.Apps/AppFrontend/react/altinn-app-frontend/src/components/base/InputComponent.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
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
5 changes: 5 additions & 0 deletions
5
...d/react/altinn-app-frontend/src/shared/resources/options/fetch/fetchOptionsActionTypes.ts
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,5 @@ | ||
const moduleName: string = 'OPTIONS'; | ||
|
||
export const FETCH_OPTIONS: string = `${moduleName}.FETCH_OPTIONS`; | ||
export const FETCH_OPTIONS_FULFILLED: string = `${moduleName}.FETCH_OPTIONS_FULFILLED`; | ||
export const FETCH_OPTIONS_REJECTED: string = `${moduleName}.FETCH_OPTIONS_REJECTED`; |
Oops, something went wrong.