mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-24 04:31:52 +00:00
Extracted update banner to a separated component
This commit is contained in:
16
src/common/AppUpdateBanner.tsx
Normal file
16
src/common/AppUpdateBanner.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { FC, MouseEventHandler } from 'react';
|
||||
import { Alert } from 'reactstrap';
|
||||
import { SimpleCard } from '../utils/SimpleCard';
|
||||
import './AppUpdateBanner.scss';
|
||||
|
||||
interface AppUpdateBannerProps {
|
||||
isOpen: boolean;
|
||||
toggle: MouseEventHandler<any>;
|
||||
}
|
||||
|
||||
export const AppUpdateBanner: FC<AppUpdateBannerProps> = (props) => (
|
||||
<Alert className="app-update-banner" {...props} tag={SimpleCard} color="secondary">
|
||||
<h4 className="mb-4">This app has just been updated!</h4>
|
||||
<p className="mb-0">Restart it to enjoy the new features.</p>
|
||||
</Alert>
|
||||
);
|
||||
Reference in New Issue
Block a user