mirror of
https://github.com/SomboChea/ui
synced 2026-01-19 17:46:12 +07:00
chore: sync with verdaccio master
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* @prettier
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import type { Node } from 'react';
|
||||
import { IProps } from './types';
|
||||
|
||||
const Link = ({ children, to = '#', blank = false, ...props }: IProps): Node => (
|
||||
<a href={to} target={blank ? '_blank' : '_self'} {...props}>
|
||||
{children}
|
||||
</a>
|
||||
);
|
||||
|
||||
export default Link;
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* @prettier
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import type { Node } from 'react';
|
||||
|
||||
export interface IProps {
|
||||
children?: Node;
|
||||
to?: string;
|
||||
blank?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user