brew update
brew install pyenv
export PYENV_ROOT="$HOME/.pyenv"
import { TextField } from '@mui/material'; | |
import Autocomplete from '@mui/material/Autocomplete'; | |
import { useFormikContext } from 'formik'; | |
import React from 'react'; | |
type OptionsValues = { | |
title: string, | |
value: string | |
} |
if ( | |
PRODUCTION_ENV && | |
request.headers.get("x-forwarded-proto") !== "https" | |
) { | |
const hostname = request.headers.get("host") || request.nextUrl.hostname; | |
return NextResponse.redirect( | |
`https://${hostname}${request.nextUrl.pathname}` | |
); | |
} |
const { query } = router | |
const queryParams = { | |
[field]: [value]?.concat?.(query[field] || []) | |
} | |
router.replace({ | |
query: { ...query, ...queryParams }, | |
}); |
name: ci | |
on: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: |
version: '3.9' | |
services: | |
postgres: | |
image: 'postgres:13' | |
ports: | |
- '5432:5432' | |
volumes: | |
- postgres:/data/db | |
environment: |
/** | |
* Metro configuration for React Native | |
* https://github.com/facebook/react-native | |
* | |
* @format | |
*/ | |
const path = require('path'); | |
const getWorkspaces = require('get-yarn-workspaces'); | |
const workspaces = getWorkspaces(__dirname); |
import React, { useState } from 'react' | |
import Sidebar from './Sidebar' | |
import Edit from './Edit' | |
import { render, waitForElement, fireEvent } from '@testing-library/react'; | |
describe('Component sidebar tests', () => { | |
const setup = () => { |