Skip to content

Commit

Permalink
Style: Simplify constants imports
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Dec 8, 2022
1 parent ca8f15c commit 0c8f45e
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
legalizeLmc,
pluralize,
} from '../utils';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';
import { SecondaryButtonMode } from '../constants';

describe('utils', () => {
describe('addSeparators', () => {
Expand Down
3 changes: 1 addition & 2 deletions src/languages/cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import {
legalizeLmc,
} from '../utils';
import { ExtraMessages, Values } from '../types';
import { CookieConsentCategory } from '../constants';
import { CookieConsentCategory, SecondaryButtonMode } from '../constants';
import { VanillaCookieConsent } from '../types/vanilla-cookieconsent';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';

const extra = {
and: 'a',
Expand Down
3 changes: 1 addition & 2 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import {
legalizeLmc,
} from '../utils';
import { ExtraMessages, Values } from '../types';
import { CookieConsentCategory } from '../constants';
import { CookieConsentCategory, SecondaryButtonMode } from '../constants';
import { VanillaCookieConsent } from '../types/vanilla-cookieconsent';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';

const extra = {
and: 'und',
Expand Down
3 changes: 1 addition & 2 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import {
legalizeLmc,
} from '../utils';
import { ExtraMessages, Values } from '../types';
import { CookieConsentCategory } from '../constants';
import { CookieConsentCategory, SecondaryButtonMode } from '../constants';
import { VanillaCookieConsent } from '../types/vanilla-cookieconsent';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';

const extra = {
and: 'and',
Expand Down
5 changes: 2 additions & 3 deletions src/languages/hu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import {
legalizeLmc,
} from '../utils';
import { ExtraMessages, Values } from '../types';
import { CookieConsentCategory } from '../constants';
import { CookieConsentCategory, SecondaryButtonMode } from '../constants';
import { VanillaCookieConsent } from '../types/vanilla-cookieconsent';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';

const extra = {
and: 'és',
legalName: 'LMC és a csoporthoz tartozó vállalatok',
legalName: 'LMC csoport és a hozzá tartozó vállalatok',
};

/**
Expand Down
3 changes: 1 addition & 2 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import {
pluralize,
} from '../utils';
import { ExtraMessages, Values } from '../types';
import { CookieConsentCategory } from '../constants';
import { CookieConsentCategory, SecondaryButtonMode } from '../constants';
import { VanillaCookieConsent } from '../types/vanilla-cookieconsent';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';

const extra = {
and: 'i',
Expand Down
3 changes: 1 addition & 2 deletions src/languages/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import {
pluralize,
} from '../utils';
import { ExtraMessages, Values } from '../types';
import { CookieConsentCategory } from '../constants';
import { CookieConsentCategory, SecondaryButtonMode } from '../constants';
import { VanillaCookieConsent } from '../types/vanilla-cookieconsent';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';

const extra = {
and: 'и',
Expand Down
3 changes: 1 addition & 2 deletions src/languages/sk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import {
pluralize,
} from '../utils';
import { ExtraMessages, Values } from '../types';
import { CookieConsentCategory } from '../constants';
import { CookieConsentCategory, SecondaryButtonMode } from '../constants';
import { VanillaCookieConsent } from '../types/vanilla-cookieconsent';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';

const extra = {
and: 'a',
Expand Down
3 changes: 1 addition & 2 deletions src/languages/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import {
pluralize,
} from '../utils';
import { ExtraMessages, Values } from '../types';
import { CookieConsentCategory } from '../constants';
import { CookieConsentCategory, SecondaryButtonMode } from '../constants';
import { VanillaCookieConsent } from '../types/vanilla-cookieconsent';
import { SecondaryButtonMode } from '../constants/SecondaryButtonMode';

const extra = {
and: 'i',
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Values } from './types';
import { SecondaryButtonMode } from './constants/SecondaryButtonMode';
import { SecondaryButtonMode } from './constants';
import { VanillaCookieConsent } from './types/vanilla-cookieconsent';

export const addSeparators = (strings: string[], and: string = ''): string =>
Expand Down

0 comments on commit 0c8f45e

Please sign in to comment.