import { colors } from '@0xproject/react-shared'; import * as React from 'react'; import { AlertTypes } from 'ts/types'; interface AlertProps { type: AlertTypes; message: string | React.ReactNode; } export function Alert(props: AlertProps) { const isAlert = props.type === AlertTypes.ERROR; const errMsgStyles = { background: isAlert ? colors.red200 : colors.lightestGreen, color: colors.white, marginTop: 10, padding: 4, paddingLeft: 8, }; return (
{props.message}
); } .tfcis.org/~lantw44/git/freebsd-ports-gnome' title='freebsd-ports-gnome Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/joe2
Commit message (Expand)AuthorAgeFilesLines
* statue@freebsd.sinica.edu.tw has asked for all the maintainedlinimon2003-11-211-1/+1