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
import { range, sortBy, sort, prop } from 'ramda'; | |
import { constructJobsByDept } from './api'; | |
import { DepartmentRaw, JobsByDept } from './models'; | |
describe('convert greenhouse call to valid JobsByDept list', () => { | |
const fakeAxiosResult = departments => ({ | |
data: { | |
departments, | |
}, | |
}); |
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
const promoEvents = { | |
PROMO_ENTERED: {}, | |
PROMO_ERROR: { | |
target: '', | |
actions: assign({ error: (_, event) => event.error }), | |
}, | |
}; | |
const submissionErrorEvent = { | |
target: 'formComplete', |
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
// export type loadingStates = 'loadingCart' | 'loadValidateShipping' | |
const loadingSideEffects = { | |
loadingCart: { | |
invoke: { | |
src: 'loadingCart', | |
onDone: [{ | |
target: 'idleCart', | |
cond: (_, event) => event.data, | |
actions: [ |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
<style is:global> | |
:root { | |
--font-size-base: clamp(1rem, 0.34vw + 0.91rem, 1.19rem); | |
--font-size-lg: clamp(1.2rem, 0.7vw + 1.2rem, 1.5rem); | |
--font-size-xl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem); | |
--color-text: #F4E7FF; | |
--color-text-secondary: #C3B6FE; | |
--grey-1: #0F172A; | |
--grey-2: #1D293B; | |
--grey-3: #344155; |
OlderNewer