This file contains hidden or 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
let META_REDUCERS = [ | |
combineReducers | |
]; | |
if (ENV === 'development') { | |
META_REDUCERS.unshift(storeLogger()); | |
} | |
export default compose(...META_REDUCERS)({ | |
auth, |
This file contains hidden or 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 * as _ from 'lodash'; | |
function writeColumns(input) { | |
const processedInput = _(input) | |
.map(item => ` ${item} `) | |
.chunk(5) | |
.map((item, ind, array) => { | |
return item.map((i, index) => { | |
const filteredColumn = _(array) | |
.map((chunk) => chunk[index]) |
This file contains hidden or 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 { async, ComponentFixture, TestBed } from '@angular/core/testing'; | |
import { NO_ERRORS_SCHEMA } from '@angular/core'; | |
import { ActivatedRoute } from '@angular/router'; | |
import { Observable, BehaviorSubject } from 'rxjs'; | |
import { isEqual } from 'lodash'; | |
import * as uuid from 'uuid/v1'; | |
import { DocumentsPageComponent } from './documents.page.component'; | |
import { DocumentsService } from '@documents-core/services/documents.service'; | |
import { DocumentsFiltersService } from '@documents-core/services/document-filters.service'; |
This file contains hidden or 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
{ | |
"total": 3, | |
"totalReturned": 3, | |
"response": [ | |
{ | |
"services": [ | |
{ | |
"itemId": 590716, | |
"initialPrice": 0, | |
"computedPrice": 0, |
This file contains hidden or 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 React, { ChangeEvent, useEffect, useState } from "react" | |
const SearchInput: React.FC = () => { | |
const [query, setQuery] = useState("") | |
function onChange(e: ChangeEvent<HTMLInputElement>) { | |
setQuery(e.target.value) | |
} | |
return <input type="text" value={query} onChange={onChange} /> |
This file contains hidden or 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 { useParams } from 'react-router-dom' | |
const { params } = useParams() |
This file contains hidden or 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 React, { ChangeEvent, useEffect, useState } from "react" | |
import { useHistory } from "react-router-dom" | |
const SearchInput: React.FC = () => { | |
const [query, setQuery] = useState("") | |
const history = useHistory() | |
function onChange(e: ChangeEvent<HTMLInputElement>) { | |
setQuery(e.target.value) | |
} |
This file contains hidden or 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 React, { ReactElement } from "react" | |
import TabTitle from "./TabTitle" | |
type Props = { | |
children: ReactElement[] | |
} | |
const Tabs: React.FC<Props> = ({ children }) => { | |
return ( |
This file contains hidden or 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 React from 'react' | |
type Props = { | |
title: string | |
} | |
const Tab: React.FC<Props> = ({ children }) => { | |
return <div>{children}</div> | |
} |
This file contains hidden or 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 React from "react" | |
type Props = { | |
title: string | |
} | |
const TabTitle: React.FC<Props> = ({ title}) => { | |
return ( | |
<li> |