Skip to content
This repository was archived by the owner on Oct 15, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ import { Button, Flex, Text } from '@ttoss/ui';

export type InstallPwaUiProps = {
onInstall: React.MouseEventHandler<HTMLButtonElement>;
onCloseUserDoNotWantInstall: React.MouseEventHandler<HTMLButtonElement>;
};

export const InstallPwaUi = ({ onInstall }: InstallPwaUiProps) => {
export const InstallPwaUi = ({
onInstall,
onCloseUserDoNotWantInstall,
}: InstallPwaUiProps) => {
return (
<Flex
sx={{
Expand All @@ -29,6 +33,7 @@ export const InstallPwaUi = ({ onInstall }: InstallPwaUiProps) => {
>
<Text>Deseja instalar o nosso aplicativo?</Text>
<Button onClick={onInstall}>Instalar</Button>
<Button onClick={onCloseUserDoNotWantInstall}>Fechar</Button>
</Flex>
</Flex>
);
Expand Down
Loading