import "./formik-demo.css";
import React from "react";
import { render } from "react-dom";
import { Formik, Field } from "formik";
import Yup from "yup";
import classNames from "classnames";
// Input feedback
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
| // EmailInput wraps an HTML `input` and adds some app-specific styling. | |
| const EmailInput = React.forwardRef((props, ref) => ( | |
| <input ref={ref} {...props} type="email" className="AppEmailInput" /> | |
| )); | |
| class App extends Component { | |
| emailRef = React.createRef(); | |
| render() { | |
| 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
| package main | |
| import ( | |
| "database/sql" | |
| "encoding/json" | |
| "log" | |
| "net/http" | |
| "strconv" | |
| _ "github.com/mattn/go-sqlite3" |
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
| export default { | |
| props: { | |
| stripe: { | |
| type: String, | |
| required: true, | |
| }, | |
| options: { | |
| type: Object, | |
| required: true, | |
| } |
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, { Component } from 'react'; | |
| import { BrowserRouter as Router, Route, Link } from "react-router-dom"; | |
| import { Layout, Menu, Icon } from 'antd'; | |
| import Dashboard from './containers/Dashboard/Dashboard'; | |
| import Meseros from './containers/Meseros/Meseros'; | |
| const { Header, Content, Footer, Sider } = Layout; | |
| const SubMenu = Menu.SubMenu; |
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
| /* | |
| * Spacing helpers for consistent margin and padding on elements. Uses rems (not px!) | |
| * | |
| * With the current default settings, generates classes like: | |
| * .mts = margin-top: 0.5rem | |
| * .phl = padding-left: 2rem; padding-right: 2rem; // h = horizontal = left/right | |
| * | |
| * Inspired by: | |
| * https://github.com/mrmrs/css-spacing | |
| * https://getbootstrap.com/docs/4.0/utilities/spacing/ |
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
| image: docker:latest | |
| variables: | |
| REPOSITORY_URL: <AWS ACCOUNT ID>.dkr.ecr.eu-central-1.amazonaws.com/<ECS REPOSITORY NAME> | |
| REGION: eu-central-1 | |
| TASK_DEFINTION_NAME: <TASK DEFINITION NAME> | |
| CLUSTER_NAME: <CLUSTER NAME> | |
| SERVICE_NAME: <SERVICE NAME> | |
| services: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This is a solution on how to theme/customize Ant Design (which is written in Less) with Sass and webpack. Ant itself offers two solutions and a related article on theming, but these are only applicable if you use Less, the antd-init boilerplate or dva-cli.
- use a single sass-file to customize (no duplicate variables for your project and Ant)
- hot reload compatibility
- no dependencies on outdated npm modules
- easy integration with your existing webpack setup (webpack 3+ tested)