Skip to content

Commit

Permalink
🧑‍💻add 'use client' to relevant index files
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvernes committed Jan 3, 2025
1 parent 931b82d commit d8dc0a1
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Accordion/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Accordion as BaseAccordion } from './Accordion'
import { AccordionItem, AccordionItemProps } from './AccordionItem'
import { AccordionHeader, AccordionHeaderProps } from './AccordionHeader'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Banner/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Banner as BaseBanner, BannerProps } from './Banner'
import { BannerIcon, BannerIconProps } from './BannerIcon'
import { BannerMessage, BannerMessageProps } from './BannerMessage'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Breadcrumbs as BaseComponent, BreadcrumbsProps } from './Breadcrumbs'
import { Breadcrumb, BreadcrumbProps } from './Breadcrumb'

Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Button/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Button as ButtonWrapper, ButtonProps } from './Button'
import { ButtonGroup, ButtonGroupProps } from './ButtonGroup/ButtonGroup'
import { ToggleButton, ToggleButtonProps } from './ToggleButton/ToggleButton'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Card/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Card as CardWrapper, CardProps } from './Card'
import { CardActions, CardActionsProps } from './CardActions'
import { CardContent, CardContentProps } from './CardContent'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Datepicker/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
export * from './DatePicker'
export * from './DateRangePicker'
export * from './props'
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Dialog/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Dialog as BaseComponent, DialogProps } from './Dialog'
import { DialogActions, DialogActionsProps } from './DialogActions'
import { DialogTitle, DialogTitleProps } from './DialogTitle'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/List/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { List as BaseComponent, ListProps } from './List'
import { ListItem, ListItemProps } from './ListItem'

Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Menu as BaseMenu, MenuProps } from './Menu'
import { MenuItem, MenuItemProps } from './MenuItem'
import { MenuSection, MenuSectionProps } from './MenuSection'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Popover/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Popover as BaseComponent, PopoverProps } from './Popover'
import { PopoverTitle, PopoverTitleProps } from './PopoverTitle'
import { PopoverContent, PopoverContentProps } from './PopoverContent'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/SideBar/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { SideBar as BaseSideBar } from './SideBar'
import { useSideBar } from './SideBar.context'
import { SidebarLink, SidebarLinkProps } from './SidebarLink'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Snackbar/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { SnackbarAction, SnackbarActionProps } from './SnackbarAction'
import { Snackbar as BaseComponent, SnackbarProps } from './Snackbar'

Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Table/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Table as BaseTable, TableProps } from './Table'
import { Body, BodyProps } from './Body'
import { Cell, CellProps } from './Cell'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import {
TableOfContents as BaseComponent,
TableOfContentsProps,
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/Tabs/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { Tabs as BaseComponent, TabsProps } from './Tabs'
import { TabList, TabListProps } from './TabList'
import { Tab, TabProps } from './Tab'
Expand Down
1 change: 1 addition & 0 deletions packages/eds-core-react/src/components/TopBar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client'
import { TopBar as BaseComponent, TopbarProps } from './TopBar'
import { Actions, TopbarActionsProps } from './Actions'
import { Header, TopbarHeaderProps } from './Header'
Expand Down

0 comments on commit d8dc0a1

Please sign in to comment.