Skip to content

Commit

Permalink
converting loading components to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
MikesGlitch committed Oct 16, 2023
1 parent d65af92 commit cad2c58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React from 'react';
import React, { type SVGProps } from 'react';

import { css } from 'glamor';
import { css, keyframes } from 'glamor';

import Loading from './Loading';

const rotation = css.keyframes({
const rotation = keyframes({
'0%': { transform: 'rotate(-90deg)' },
'100%': { transform: 'rotate(666deg)' },
});

function AnimatedLoading(props) {
function AnimatedLoading(props: SVGProps<SVGSVGElement>) {
return (
<span
className={`${css({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import React, { type SVGProps, useState } from 'react';

const SvgLoading = props => {
const SvgLoading = (props: SVGProps<SVGSVGElement>) => {
let { color = 'currentColor' } = props;
let [gradientId] = useState('gradient-' + Math.random());

Expand Down
2 changes: 1 addition & 1 deletion upcoming-release-notes/1784.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ category: Maintenance
authors: [MikesGlitch]
---

Convert FixEncryptionKey component to TypeScript and update get-payee query type.
Convert FixEncryptionKey, Loading, AnimatedLoading components to TypeScript and update get-payee query type.

0 comments on commit cad2c58

Please sign in to comment.