Skip to content

Commit

Permalink
SHARED(Frontend): Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Sep 25, 2024
1 parent c1e8fc4 commit 38abb80
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const NativeSelectOrComboBox = ({
value: rest.value || '',
disabled: rest.disabled,
'data-testid': rest['data-testid'],
variant: 'outlined'
variant: 'outlined',
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
border-top: 1px dashed colors.$color-red-500;
border-right: 1px dashed colors.$color-red-500;
border-bottom: 1px dashed colors.$color-red-500;

p {
color: colors.$color-red-500;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ const CustomSelect = ({
...rest
}: CustomNativeSelectProps) => {
const options = [{ label: placeholder, value: '' }, ...values];
const inputValue = (value && value.value) ? value : '';
const inputValue = value && value.value ? value : '';

return (
<Select
variant={Variant.Outlined}
value={inputValue}
{...rest}
native
>
<Select variant={Variant.Outlined} value={inputValue} {...rest} native>
{options.map(({ label, value }) => (
<option key={value} value={value}>
{label}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
flex-direction: row;
gap: 6rem;
margin: 0;
}

> li {
padding-bottom: 2rem;
> a {
text-decoration: none;
}
li {
padding-bottom: 2rem;
> a {
text-decoration: none;
}
}

li.active {
p {
color: colors.$color-secondary;
font-weight: 700;
}
border-bottom: 2px solid colors.$color-secondary;
li.active {
p {
color: colors.$color-secondary;
font-weight: 700;
}
border-bottom: 2px solid colors.$color-secondary;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Text } from '../Text/Text';
import { Link } from 'react-router-dom';

import { Text } from '../Text/Text';
import './NavigationLinks.scss';

interface NavigationLinksProps {
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/shared/src/components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ export {
NativeSelect,
NativeSelectWithLabel,
} from './NativeSelect/NativeSelect';
export { NavigationLinks } from './NavigationLinks/NavigationLinks';
export { NavigationLinks } from './NavigationLinks/NavigationLinks';

0 comments on commit 38abb80

Please sign in to comment.