Skip to content

Instantly share code, notes, and snippets.

View shawn-sandy's full-sized avatar
💭
I may be slow to respond.

Shawn Sandy shawn-sandy

💭
I may be slow to respond.
View GitHub Profile
"use strict";
const matter = [
null,
null,
null,
{
title: "Advanced title",
description: "Some advance story",
date: "2023-01-22T23:51:45.574Z",
import { Button } from './button'
import { BADGE } from '@geometricpanda/storybook-addon-badges'
import '@shawnsandy/first-paint/dist/css/components/button.min.css'
import { userEvent, screen, waitFor } from '@storybook/testing-library'
import { expect } from '@storybook/jest'
export default {
title: 'FP.React Components/Buttons',
component: Button,
@shawn-sandy
shawn-sandy / checkbox.scss
Last active November 3, 2022 01:52
css-snippets
:where(label) {
display: flex;
place-items: center;
margin-right: 1rem;
gap: 0.3rem;
cursor: pointer;
height: auto;
:where([type="checkbox"]) {
appearance: none;
@shawn-sandy
shawn-sandy / footer.html
Last active November 1, 2022 07:02
FirstPaint snippets
@shawn-sandy
shawn-sandy / js-snippets.md
Last active October 19, 2022 11:43
js-snippets

Snippets

@shawn-sandy
shawn-sandy / .eslintignore
Last active September 22, 2022 20:14
Husky setup files
node_modules
package-lock.json
# Cache
.npm
.cache
.eslintcache
# ignore built packages
dist
# developer-portal-tab-container
import React from 'react'
import COMPONENT_NAME from './component-name'
import { ComponentStory, ComponentMeta } from "@storybook/react"
import { BADGE } from '@geometricpanda/storybook-addon-badges';
export default {
title: 'Elements/COMPONENT_NAMEs',
component: COMPONENT_NAME,
argTypes: {
/**
* ! issues calling onFailure
*/
useEffect(() => {
if (atsProgressStatus === 'INVALID_CREDENTIALS') {
callOnFailure();
next();
// onFailure();
console.log({ atsProgressStatus });
@shawn-sandy
shawn-sandy / diagrams.md
Last active July 12, 2022 20:56
Diagrams

‎‎​