Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #68 from smartive-education/feature/interfaces
Browse files Browse the repository at this point in the history
fix: remove unused types
  • Loading branch information
webrooster authored Jan 6, 2023
2 parents 114fc52 + 4e4a1d9 commit b1e0138
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IconLink, IIconLinkProps } from './IconLink';
import { Button } from './buttons/Button';
import { Avatar } from './Avatar';

export interface IUserProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
export interface IUserProps {
label: string;
variant: 'small' | 'medium' | 'large' | 'xlarge' | 'recommended' | 'write' | 'inline';
username: IIconLinkProps;
Expand Down Expand Up @@ -85,7 +85,6 @@ export const User: React.FC<IUserProps> = ({
{variant === 'write' && (
<Row gap="small">
<Column variant={variant}>

<Avatar
alt={avatar.alt}
src={avatar.src}
Expand Down Expand Up @@ -196,8 +195,8 @@ export const User: React.FC<IUserProps> = ({
label={btn?.label}
size="small"
type="button"
color="violet"
width="large"
variant="violet"
/>
</Column>
</Article>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react';
import tw, { styled, TwStyle } from 'twin.macro';
import { MumbleText, MumbleGradient, LogoMumble } from '../icons/index';

export interface IMumbleLogoProps extends React.HTMLAttributes<HTMLOrSVGImageElement> {
export interface IMumbleLogoProps {
title: string;
href: string;
variant: 'violet' | 'gradient' | 'white';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import tw, { css, styled } from 'twin.macro';
import { IconsMapped, IconTypes } from '../icons/IconMap';

export interface IButtonProps extends React.HtmlHTMLAttributes<HTMLButtonElement> {
export interface IButtonProps {
label: string;
variant?: 'slate' | 'violet' | 'pink';
size?: 'small' | 'large';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled, { css } from 'styled-components';
import tw from 'twin.macro';
import { IconsMapped, IconTypes } from '../icons/IconMap';

export interface IconButtonProps extends React.HtmlHTMLAttributes<HTMLButtonElement> {
export interface IconButtonProps {
label: string;
icon: IconTypes;
variant: 'default' | 'edit';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';
import tw from 'twin.macro';
import { HeartFilled, HeartOutlined, ReplyFilled, ReplyOutlined } from '../icons/index';

export interface IInteractionButton extends React.HtmlHTMLAttributes<HTMLButtonElement> {
export interface IInteractionButton {
type?: 'like' | 'comment';
quantity?: number;
favourite?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import tw from 'twin.macro';
import { IconsMapped, IconTypes } from '../icons/IconMap';
import { Avatar } from '../Avatar';

export interface INaviButtonProps extends React.HtmlHTMLAttributes<HTMLButtonElement> {
export interface INaviButtonProps {
label: string;
variant?: 'icon' | 'default' | 'profile';
disabled?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from 'styled-components';
import tw from 'twin.macro';
import { IconsMapped, IconTypes } from '../icons/IconMap';

export interface IShareButton extends React.HtmlHTMLAttributes<HTMLButtonElement> {
export interface IShareButton {
label: string;
fCallBack?: () => void;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import styled from 'styled-components';
import tw from 'twin.macro';

export interface TextButtonProps extends React.HtmlHTMLAttributes<HTMLButtonElement> {
export interface TextButtonProps {
label: string;
handleClick?: () => void;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import tw, { styled } from 'twin.macro';

export interface IFormCheckboxProps extends React.HtmlHTMLAttributes<HTMLFormElement> {
export interface IFormCheckboxProps {
selection: 'mumbles' | 'likes';
fCallBack?: (type: string) => void;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react';
import tw, { styled } from 'twin.macro';
import { Eye } from '../icons/index';

export interface IFormInputProps extends React.HtmlHTMLAttributes<HTMLFormElement> {
export interface IFormInputProps {
label?: string;
editType: 'input' | 'textarea';
required: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { IImageContainerProps, ImageContainer } from '../ImageContainer';
import { Avatar } from '../Avatar';
import { BottomSpacing } from '../Spacing';

export interface IMumbleProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
export interface IMumbleProps {
variant?: 'detailpage' | 'timeline' | 'response';
user: IUserProps;
text: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import tw, { styled } from 'twin.macro';
import { BottomSpacing } from '../Spacing';

export interface IHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
export interface IHeadingProps {
label: string;
tag: 'h1' | 'h2' | 'h3' | 'h4' | 'span';
color: 'light' | 'medium' | 'dark' | 'violet' | 'pink' | 'white';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import tw, { styled } from 'twin.macro';
import { BottomSpacing } from '../Spacing';

export interface IParagraphProps extends React.HTMLAttributes<HTMLParagraphElement> {
export interface IParagraphProps {
size?: 'default' | 'medium' | 'large';
color?: 'default' | 'dark' | 'light' | 'white';
text: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import styled from 'styled-components';
import tw from 'twin.macro';

export interface ITypographyProps extends React.HTMLAttributes<HTMLHeadingElement> {
export interface ITypographyProps {
label: string;
variant: 'h1' | 'h2' | 'h3' | 'h4';
color: 'slate-500' | 'slate-600' | 'violet-600' | 'pink-900';
Expand Down

0 comments on commit b1e0138

Please sign in to comment.