Skip to content

Commit a2c8245

Browse files
committed
Clean up client components where SC has been removed
1 parent 9535242 commit a2c8245

File tree

7 files changed

+13
-19
lines changed

7 files changed

+13
-19
lines changed

src/components/elements/edit-on-github/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use client';
2-
3-
import { styled } from '@/styles';
1+
import { styled } from '@linaria/react';
42

53
import { PencilSimple } from '@/components/elements/icon';
64
import { Link } from '@/components/elements/link';

src/components/elements/moving-border/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
'use client';
2-
3-
import { screens, styled } from '@/styles';
1+
import { styled } from '@linaria/react';
2+
import { screens } from '@/styles/tokens';
43

54
export const MovingBorder = styled.figure`
65
--border-width: 1px;

src/components/elements/responsive-line-break/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
'use client';
2-
3-
import { styled, screens } from '@/styles';
1+
import { styled } from '@linaria/react';
2+
import { screens } from '@/styles/tokens';
43

54
/**
65
* A line break that's only shown on larger screens (leaving smaller screens to

src/components/layout/styles.layout.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
'use client';
2-
3-
import { screens, styled } from '@/styles';
1+
import { styled } from '@linaria/react';
2+
import { screens } from '@/styles/tokens';
43

54
export const StyledLandingLayoutWrapper = styled.div`
65
min-height: fit-content;

src/components/modules/download-button/download-dropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import sortBy from 'lodash/sortBy';
44
import partition from 'lodash/partition';
55
import { useEffect, useMemo, useState } from 'react';
66

7-
import { styled, fontSizes } from '@/styles';
7+
import { styled } from '@linaria/react';
8+
import { fontSizes } from '@/styles/tokens';
89

910
import { SendEmail } from './components/send-email';
1011
import type { DownloadDropdownProps } from './download-button.types';

src/components/sections/blog/overview-explorer/overview-explorer.styled.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
'use client';
2-
1+
import { styled } from '@linaria/react';
32
import { Container } from '@/components/elements/container';
4-
import { screens, styled, fontSizes } from '@/styles';
3+
import { screens, fontSizes } from '@/styles/tokens';
54

65
export const StyledExplorerSection = styled.section`
76
padding: 18px 0;

src/components/sections/blog/overview-explorer/tags-dropdown/tags-dropdown.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
'use client';
2-
31
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
42

5-
import { styled, fontSizes, fontWeight } from '@/styles';
3+
import { styled } from '@linaria/react';
4+
import { fontSizes, fontWeight } from '@/styles/tokens';
65

76
export const StyledButtonTrigger = styled.button`
87
background: transparent;

0 commit comments

Comments
 (0)