import React, { useState } from 'react';
interface Props {
text: string;
}
const MyComponent = (props: Props) => {
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
[alias] | |
# View commits in local branch vs. master | |
current = !"git log $(git rev-parse --abbrev-ref HEAD) ^master --no-merges" | |
# View unpushed commits | |
unpushed = !git log @{u}..HEAD | |
# View all unpushed commits on all branches | |
all-unpushed = !git log --branches --not --remotes --oneline | |
# View latest unpushed commits on all branches | |
unpushed-branches = !git log --branches --not --remotes --oneline --decorate --simplify-by-decoration |
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
type ValidClass = string | number | undefined | null | ObjectClass; | |
type ObjectClass = { | |
[key: string]: boolean | undefined; | |
}; | |
type ClassName = ValidClass | ValidClass[]; | |
/** | |
* Easier class names management for JSX elements. |
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 * as React from 'react'; | |
import * as unified from 'unified'; | |
import { useContext } from 'react'; | |
import classNames from '../libs/classNames'; | |
import mentions from './remark-mentions'; | |
import { StateContext } from '..'; | |
import { traverseMentions } from '../traverse-mentions'; | |
import { User } from '../types'; |
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, { useEffect, useState, useCallback } from 'react'; | |
import { render } from 'react-dom'; | |
import { run } from 'frap'; | |
import xs, { Stream } from 'xstream'; | |
import { useStream } from './util'; | |
import { State, View, startState } from './main.ts'; | |
/** Our 'send' function signature. */ | |
type Send = (event: View) => void; |
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
/* | |
* This script fetches all color styles from a Figma team/document. | |
* | |
* Dependencies: | |
* | |
* - node-fetch | |
* | |
* Due to a limitation in the Figma /styles endpoint, we need to use a | |
* document for actually using the colors in a color grid 🙄That's why | |
* we're both fetching from /styles and /files below. |
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 from 'react'; | |
interface Props { | |
onAddTodo: (newDescription: string) => void; | |
} | |
export const MyForm = (props: Props) => { | |
const handleSubmit = (evt) => { | |
evt.preventDefault(); |
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
/* | |
* This script fetches all color styles from a Figma team/document. | |
* | |
* Due to a limitation in the Figma /styles endpoint, we need to use a | |
* document for actually using the colors in a color grid 🙄That's why | |
* we're both fetching from /styles and /files below. | |
* | |
* For now, you need to input the page and team IDs, as well as the file keys. | |
* The team ID is in the Figma URL of your team, and the file key is the long | |
* string in the full URL of a Figma file. The page ID is visible in the JSON |
- Tycker body-texten ska ha en brunare/jordigare ton. För mycket svart nu.
- Har du provat med centerjusterad text i sektionen "Komplement, eller helt ny garderob"?
- Tycker du kan blåsa upp rubriken i hero lite. Låt den ta lite plats! Kontrast! Tycker iofs du kan förstora alla rubriker nu när jag ser resten. Låt dem även ha samma fadeade ton som huvudrubriken.
- Lite newb med gmail-adress.
- Ingen spacing mellan hyphen i telefonnummer