-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor components: convert default exports to named exports and sim…
…plify rendering logic
- Loading branch information
1 parent
0597aaf
commit 5f8f166
Showing
19 changed files
with
28 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
/* * */ | ||
|
||
import AlertsDetail from '@/components/alerts/AlertsDetail'; | ||
import { AlertsDetail } from '@/components/alerts/AlertsDetail'; | ||
|
||
/* * */ | ||
|
||
export default function Page({ params: { alert_id } }) { | ||
return ( | ||
<AlertsDetail alertId={alert_id} /> | ||
); | ||
export default async function Page({ params }) { | ||
const { alert_id } = await params; | ||
return <AlertsDetail alertId={alert_id} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
/* * */ | ||
|
||
import AlertsList from '@/components/alerts/AlertsList'; | ||
import { AlertsList } from '@/components/alerts/AlertsList'; | ||
|
||
/* * */ | ||
|
||
export default function Page() { | ||
return ( | ||
<AlertsList /> | ||
); | ||
return <AlertsList />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
/* * */ | ||
|
||
import AlertsDetail from '@/components/alerts/AlertsDetail'; | ||
import { AlertsDetail } from '@/components/alerts/AlertsDetail'; | ||
|
||
/* * */ | ||
|
||
export default function Page({ params: { alert_id } }) { | ||
return ( | ||
<AlertsDetail alertId={alert_id} /> | ||
); | ||
export default async function Page({ params }) { | ||
const { alert_id } = await params; | ||
return <AlertsDetail alertId={alert_id} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
/* * */ | ||
|
||
import AlertsList from '@/components/alerts/AlertsList'; | ||
import { AlertsList } from '@/components/alerts/AlertsList'; | ||
|
||
/* * */ | ||
|
||
export default function Page() { | ||
return ( | ||
<AlertsList /> | ||
); | ||
return <AlertsList />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
/* * */ | ||
|
||
import StoresList from '@/components/stores/StoresList'; | ||
import { StoresList } from '@/components/stores/StoresList'; | ||
|
||
/* * */ | ||
|
||
export default function Page() { | ||
return ( | ||
<StoresList /> | ||
); | ||
return <StoresList />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
/* * */ | ||
|
||
import AlertsDetail from '@/components/alerts/AlertsDetail'; | ||
import { AlertsDetail } from '@/components/alerts/AlertsDetail'; | ||
|
||
/* * */ | ||
|
||
export default function Page({ params: { alert_id } }) { | ||
return ( | ||
<AlertsDetail alertId={alert_id} /> | ||
); | ||
export default async function Page({ params }) { | ||
const { alert_id } = await params; | ||
return <AlertsDetail alertId={alert_id} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
/* * */ | ||
|
||
import AlertsList from '@/components/alerts/AlertsList'; | ||
import { AlertsList } from '@/components/alerts/AlertsList'; | ||
|
||
/* * */ | ||
|
||
export default function Page() { | ||
return ( | ||
<AlertsList /> | ||
); | ||
return <AlertsList />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters