-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from Nounspace/SpaceLayout
Space Layout [partially implemented architecture]
- Loading branch information
Showing
4 changed files
with
67 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
|
||
type SpaceArgs = { | ||
config: { | ||
fidgetConfigs: { | ||
[key: string]: any | ||
} | ||
layoutID: string; | ||
layoutConfig: { | ||
[key: string]: any | ||
} | ||
}; | ||
isEditable: boolean; | ||
} | ||
|
||
const Space = ({ config, isEditable }: SpaceArgs) => { | ||
return ( | ||
<> | ||
|
||
</> | ||
); | ||
}; | ||
|
||
export default Space; |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Space from "@/common/ui/templates/space"; | ||
import { useAccountStore } from "@/common/data/stores/useAccountStore"; | ||
|
||
function retrieveConfig(user, space){ | ||
const fidgetConfigs = {}; | ||
const layoutConfig = {} | ||
const layoutID = ""; | ||
|
||
return ({fidgetConfigs, layoutConfig, layoutID}) | ||
} | ||
|
||
export default function Homebase(spaceID) { | ||
|
||
//const { getCurrentUser } = useAccountStore(); | ||
const user = useAccountStore.getState().accounts[0]; | ||
|
||
return ( | ||
<Space config={retrieveConfig(user, spaceID)} isEditable={true}></Space> | ||
) | ||
} |