Skip to content

Commit a15d229

Browse files
committed
Comment refactor
1 parent 7a72c5b commit a15d229

13 files changed

+0
-52
lines changed

src/components/Coming.styles.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
import styled from 'styled-components';
62

73
export const Container = styled.main`

src/components/Coming.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
import {
62
cloneElement,
73
Fragment,

src/components/Coming.types.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
import { ReactNode } from 'react';
62

73
export interface ComingProps {

src/components/__tests__/Coming.test.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
import { cleanup, render } from '@testing-library/react';
62
import { FunctionComponent } from 'react';
73
import { Coming } from '../Coming';

src/index.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
export { Coming } from './components/Coming';

src/utils/__tests__/calculateValues.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
import { calculateValues } from '../calculateValues';
62

73
test('should return calculated values for 1000 ms', () => {

src/utils/__tests__/getDefaultDate.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
import { getDefaultDate } from '../getDefaultDate';
62

73
test('default date should be valid for +3 months', () => {

src/utils/__tests__/injectFont.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
import { injectFont } from '../injectFont';
62

73
test('font is not includes in haed before call the util function', () => {

src/utils/__tests__/isValidDate.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
import { isValidDate } from '../isValidDate';
62

73
test('date should be invalid', () => {

src/utils/calculateValues.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
const calculateDaysValue = (distance: number) =>
62
Math.floor(distance / (1000 * 60 * 60 * 24));
73

src/utils/injectFont.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
export const injectFont = () => {
62
const link = document.createElement('link');
73
link.href =

src/utils/isValidDate.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
export const isValidDate = (date: Date) =>
62
date instanceof Date && !isNaN(date.getTime());

src/utils/logError.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/**
2-
* @name react-coming
3-
* @author cyntler <[email protected]>
4-
*/
51
export const logError = (message: string) => {
62
if (process.env.NODE_ENV !== 'development') {
73
return;

0 commit comments

Comments
 (0)