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
// https://techinscribed.com/building-react-app-using-material-ui-with-support-for-multiple-switchable-themes/ | |
import React, { useState } from 'react' | |
import { ThemeProvider } from '@material-ui/core/styles' | |
import getTheme from './base' | |
// eslint-disable-next-line no-unused-vars | |
export const CustomThemeContext = React.createContext( | |
{ | |
currentTheme: 'normal', | |
setTheme: null, |
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
'use strict' | |
const config = require('../../config') | |
const { MultipartError } = require('./errors') | |
const fs = require('fs') | |
const path = require('path') | |
const nanoid = require('nanoid') | |
const Multipart = (request, response, done) => { | |
// Note: onFile and addToBody cannot be handled on a per reuqest basis at the moment |
OlderNewer