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 React, { useEffect } from 'react'; | |
import PropTypes from 'prop-types'; | |
import loader from 'images/hire-loader.gif'; | |
import { Redirect, matchPath } from 'react-router-dom'; | |
import { ROLE_INTERVIEWER } from 'containers/App/constants'; | |
function EmptyRouteComponent({ | |
loggedInUserInfo, | |
history, |
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
server { | |
listen 8081; | |
server_name localhost; | |
root /usr/local/var/www/ui; | |
index index.html; | |
location /ui { | |
try_files $uri $uri/ /index.html$is_args$args; | |
} |
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
server { | |
listen 8081; | |
server_name localhost; | |
root /usr/local/var/www; | |
index /ui/index.html; | |
location /ui { | |
try_files $uri $uri/ /ui/index.html$is_args$args; | |
} |
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 React, { useState, useEffect } from 'react'; | |
import { Redirect } from 'react-router-dom'; | |
import { withOktaAuth } from '@okta/okta-react'; | |
import PropTypes from 'prop-types'; | |
const CustomImplicitCallback = (props) => { | |
const { authService, authState } = props; | |
const [authInfo, setAuthInfo] = useState({}); | |
useEffect(() => { |
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 selectAllValues = (checked) => { | |
const optionsWithFilterApplied = filteredOptions(); | |
const newOptions = [...value]; | |
optionsWithFilterApplied.filter(({disabled}) => !disabled).forEach((o) => { | |
const index = newOptions.findIndex(elem => elem.value === o.value); | |
if (checked) { | |
if (index === -1) { | |
newOptions.push(o) | |
} | |
} else { |
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
// Example 1: | |
const dog = new Promise((resolve, reject) => { | |
setTimeout(() => resolve('🐶'), 1000) | |
}) | |
const cat = new Promise((resolve, reject) => { | |
setTimeout(() => resolve('🐈'), 2000) | |
}) | |
Promise.all([dog, cat]).then((values) => { | |
// Order of values will be in the same order |
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
// Example 1: | |
const dog = new Promise((resolve, reject) => { | |
setTimeout(() => resolve('🐶'), 1000) | |
}) | |
const cat = new Promise((resolve, reject) => { | |
setTimeout(() => resolve('🐈'), 2000) | |
}) | |
Promise.race([dog, cat]).then((value) => { | |
// value will be the resolved value of |
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
// Example 1: | |
const dog = new Promise((resolve, reject) => { | |
setTimeout(() => reject('🐶'), 1000) | |
}) | |
const cat = new Promise((resolve, reject) => { | |
setTimeout(() => resolve('🐈'), 2000) | |
}) | |
Promise.any([dog, cat]).then((value) => { | |
// value will be the resolved value of |
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
// Example 1: | |
const dog = new Promise((resolve, reject) => { | |
setTimeout(() => resolve('🐶'), 1000) | |
}) | |
const cat = new Promise((resolve, reject) => { | |
setTimeout(() => reject('🐈'), 2000) | |
}) | |
Promise.allSettled([dog, cat]).then((values) => { | |
console.log(values); |
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 dog = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve('🐶'); | |
console.log('I am still executing!!'); | |
}, 1000); | |
}) | |
const cat = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
reject('🐈'); | |
console.log('Even I am!!'); |
OlderNewer