Skip to content

Commit

Permalink
refactor: fix abnormal exports
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGuy10 committed Dec 10, 2023
1 parent a9a6881 commit b0ec800
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions frontend/lib/redux/features/alerts/alertSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const initialState: AlertState = {
lastUniqueID: 0,
}

const alertSlice = createSlice({
export const alertSlice = createSlice({
name: 'alerts',
initialState,
reducers: {
Expand All @@ -38,4 +38,3 @@ const alertSlice = createSlice({
})

export const { pushAlert, popAlert } = alertSlice.actions
export default alertSlice.reducer
1 change: 0 additions & 1 deletion frontend/lib/redux/features/tooltip/tooltipSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ export const tooltipSlice = createSlice({
})

export const { createTooltip, destroyTooltip } = tooltipSlice.actions
export default tooltipSlice.reducer
7 changes: 3 additions & 4 deletions frontend/lib/redux/rootReducer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import alertSlice from './features/alerts/alertSlice'
import tooltipSlice from './features/tooltip/tooltipSlice'
import { alertSlice, tooltipSlice } from './features'

export const rootReducer = {
tooltip: tooltipSlice,
alerts: alertSlice,
tooltip: tooltipSlice.reducer,
alerts: alertSlice.reducer,
}

0 comments on commit b0ec800

Please sign in to comment.