mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
33b3df7433
* Bump @types/react from 18.0.24 to 18.0.26 (#85) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.0.24 to 18.0.26. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump typescript from 4.8.4 to 4.9.4 (#84) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.4 to 4.9.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.4...v4.9.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/webextension-polyfill from 0.9.1 to 0.9.2 (#83) Bumps [@types/webextension-polyfill](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/webextension-polyfill) from 0.9.1 to 0.9.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/webextension-polyfill) --- updated-dependencies: - dependency-name: "@types/webextension-polyfill" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @fluentui/react-components from 9.7.1 to 9.7.2 (#82) Bumps [@fluentui/react-components](https://github.com/microsoft/fluentui) from 9.7.1 to 9.7.2. - [Release notes](https://github.com/microsoft/fluentui/releases) - [Changelog](https://github.com/microsoft/fluentui/blob/master/azure-pipelines.release-fluentui.yml) - [Commits](https://github.com/microsoft/fluentui/compare/@fluentui/react-components_v9.7.1...@fluentui/react-components_v9.7.2) --- updated-dependencies: - dependency-name: "@fluentui/react-components" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fixed tooltip trigger area #81 (#87) * PT-BR translation correction (#88) * Update "Repeating" Update "Repeating" * Update licence MIT Update licence MIT * Let it snow! (#89) * Updated package.json version Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Maison da Silva <maisonmdsgreen@hotmail.com>
24 lines
505 B
TypeScript
24 lines
505 B
TypeScript
import React from "react";
|
|
import "./Snow.scss";
|
|
|
|
export default class Snow extends React.Component
|
|
{
|
|
public render(): JSX.Element
|
|
{
|
|
// Show snowflakes only from 15th of December till 10th of January
|
|
let now = new Date();
|
|
|
|
if (
|
|
(now.getMonth() !== 11 || now.getDate() < 15) &&
|
|
(now.getMonth() !== 0 || now.getDate() > 10)
|
|
)
|
|
return <></>;
|
|
|
|
return (
|
|
<div className="snowflakeContainer">
|
|
{ [...Array(50)].map((_, i) => <div key={i} className="snowflake" />) }
|
|
</div>
|
|
);
|
|
}
|
|
}
|