Skip to content

Commit f52bdcb

Browse files
committed
style: import order and separation
1 parent 60efd8d commit f52bdcb

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

server/src/search/search.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Controller, Get, Query } from '@nestjs/common';
2-
32
import { ApiTags } from '@nestjs/swagger';
43
import { SearchQueryDTO } from '@shared/validation/common/dto/SearchQuery.dto';
4+
55
import { SearchService } from './search.service';
66

77
@Controller('search')

shared/validation/user/dto/UpdateUserProfile.dto.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { validate } from 'class-validator';
2+
23
import { UserLinks } from './UpdateUserProfile.dto';
34

45
describe('UpdateUserProfileDto', () => {

shared/validation/user/dto/UpdateUserProfile.dto.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { ApiProperty } from '@nestjs/swagger';
2-
import { deepFreeze } from '@shared/validation/common/deepFreeze';
32
import { Type } from 'class-transformer';
43
import {
54
IsOptional,
@@ -10,6 +9,8 @@ import {
109
MinLength,
1110
} from 'class-validator';
1211

12+
import { deepFreeze } from '@shared/validation/common/deepFreeze';
13+
1314
export const LinkRegexes = deepFreeze({
1415
bandcamp: /https?:\/\/[a-zA-Z0-9_-]+\.bandcamp\.com\/?/,
1516
discord: /https?:\/\/(www\.)?discord\.com\/[a-zA-Z0-9_]+/,

web/src/modules/shared/components/layout/BlockSearchProps.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
'use client';
22
import { faMagnifyingGlass } from '@fortawesome/free-solid-svg-icons';
33
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4-
import { cn } from '@web/src/lib/tailwind.utils';
54
import { useState } from 'react';
5+
6+
import { cn } from '@web/src/lib/tailwind.utils';
7+
68
import { Popover, PopoverContent, PopoverTrigger } from './popover';
79

810
export const BlockSearch = () => {

web/src/modules/shared/components/layout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import {
1313
getUserData,
1414
} from '@web/src/modules/auth/features/auth.utils';
1515

16+
import { BlockSearch } from './BlockSearchProps';
1617
import { BlockTab } from './BlockTab';
1718
import { NavLinks } from './NavLinks';
1819
import { RandomSongButton } from './RandomSongButton';
19-
import { BlockSearch } from './BlockSearchProps';
2020

2121
export const Header = async () => {
2222
let isLogged;

0 commit comments

Comments
 (0)