Add support for changing account password

This commit is contained in:
Dane Everitt 2019-06-22 23:45:09 -07:00
parent d43b7ea5bc
commit 438f1b06b9
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 38 additions and 13 deletions

View file

@ -1,14 +1,17 @@
import * as React from 'react';
import classNames from 'classnames';
import FlashMessageRender from '@/components/FlashMessageRender';
type Props = Readonly<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
title?: string;
borderColor?: string;
showFlashes?: string | boolean;
}>;
export default ({ title, borderColor, children, ...props }: Props) => (
export default ({ title, borderColor, showFlashes, children, ...props }: Props) => (
<div {...props}>
{title && <h2 className={'text-neutral-300 mb-4 px-4'}>{title}</h2>}
{showFlashes && <FlashMessageRender byKey={typeof showFlashes === 'string' ? showFlashes : undefined}/>}
<div className={classNames('bg-neutral-700 p-4 rounded shadow-lg relative', borderColor, {
'border-t-4': !!borderColor,
})}>