mirror of
https://github.com/SomboChea/ui
synced 2026-01-19 01:25:51 +07:00
fix: type lint for login
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import styled, { css } from 'react-emotion';
|
||||
|
||||
const getSize = (size?: 'md' | 'sm') => {
|
||||
const getSize = (size: 'md' | 'sm' | string): string => {
|
||||
switch (size) {
|
||||
case 'md':
|
||||
return `
|
||||
@@ -15,7 +15,7 @@ const getSize = (size?: 'md' | 'sm') => {
|
||||
}
|
||||
};
|
||||
|
||||
const commonStyle = ({ size = 'sm', pointer, modifiers }: any) => css`
|
||||
const commonStyle = ({ size = 'sm' as 'md' | 'sm' | string, pointer, modifiers = null }): string => css`
|
||||
&& {
|
||||
display: inline-block;
|
||||
cursor: ${pointer ? 'pointer' : 'default'};
|
||||
|
||||
Reference in New Issue
Block a user