Skip to content

Commit 72be97e

Browse files
committed
site type store input
1 parent baf3a2b commit 72be97e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/app/data/store/slices/input.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const DEFAULT_STATE = {
88
prompt: '',
99
logo: '',
1010
experienceLevel: '',
11+
siteType: '',
1112
};
1213

1314
/**
@@ -49,6 +50,11 @@ export function input( state = DEFAULT_STATE, action ) {
4950
...state,
5051
experienceLevel: action.experienceLevel,
5152
};
53+
case 'SET_SITE_TYPE':
54+
return {
55+
...state,
56+
siteType: action.siteType,
57+
};
5258
}
5359

5460
return state;
@@ -87,6 +93,10 @@ export const actions = {
8793
type: 'SET_EXPERIENCE_LEVEL',
8894
experienceLevel,
8995
} ),
96+
setSiteType: ( siteType ) => ( {
97+
type: 'SET_SITE_TYPE',
98+
siteType,
99+
} ),
90100
};
91101

92102
/**
@@ -99,6 +109,7 @@ export const selectors = {
99109
getPrompt: ( state ) => state.input.prompt,
100110
getLogo: ( state ) => state.input.logo,
101111
getExperienceLevel: ( state ) => state.input.experienceLevel,
112+
getSiteType: ( state ) => state.input.siteType,
102113
};
103114

104115
/**

0 commit comments

Comments
 (0)