Add manifest.json, icons and install button, flatten client/src
This commit is contained in:
parent
a219e689c1
commit
474afda9c2
105 changed files with 338 additions and 283 deletions
|
@ -1,28 +0,0 @@
|
|||
import React, { useState } from 'react';
|
||||
import cn from 'classnames';
|
||||
|
||||
const AppInfo = ({ type, children, dismissible }) => {
|
||||
const [dismissed, setDismissed] = useState(false);
|
||||
|
||||
if (!dismissed) {
|
||||
const handleDismiss = () => {
|
||||
if (dismissible) {
|
||||
setDismissed(true);
|
||||
}
|
||||
};
|
||||
|
||||
const className = cn('app-info', {
|
||||
[`app-info-${type}`]: type
|
||||
});
|
||||
|
||||
return (
|
||||
<div className={className} onClick={handleDismiss}>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
export default AppInfo;
|
Loading…
Add table
Add a link
Reference in a new issue