Skip to content

Commit

Permalink
icon
Browse files Browse the repository at this point in the history
  • Loading branch information
teeteeteeteetee committed Apr 7, 2024
1 parent 89d2ff7 commit 066297f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
26 changes: 16 additions & 10 deletions src/client-src/components/ConfigItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Github: https://github.com/teeteeteeteetee
* Discord: Tee#0001
*
* Last Modified: Saturday, 25th November 2023 4:45:34 pm
* Last Modified: Sunday, 7th April 2024 12:08:18 pm
* Modified By: Tee ([email protected])
*
* Copyright (c) 2023 Tee, Stainless Love
Expand Down Expand Up @@ -37,15 +37,21 @@ export default function ConfigItem({ title, template, group, config, setConfig }
}


const dropdown = (id) => (
<div>
<select id={id} className="bg-dropdown outline-none w-32 px-2 rounded-md" name="logo">
<option value="old">Old</option>
<option value="new">Updated</option>
<option value="custom">Custom</option>
</select>
</div>
)
const dropdown = (id) => {

if(Object.keys(config).length > 0){
const [value, setValue] = useState(config[group][id].value)
return (
<div>
<select onChange={console.log(this)} id={id} className="bg-dropdown outline-none w-32 px-2 rounded-md" name="logo">
<option value="old">Old</option>
<option value="new">Updated</option>
<option value="custom">Custom</option>
</select>
</div>
)
}
}

const list = Object.keys(template)
.filter(key => !template[key].hidden)
Expand Down
4 changes: 2 additions & 2 deletions src/rpc_client-src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Github: https://github.com/teeteeteeteetee
* Discord: Tee#0001
*
* Last Modified: Saturday, 25th November 2023 6:06:47 pm
* Last Modified: Sunday, 7th April 2024 12:08:04 pm
* Modified By: Tee ([email protected])
*
* Copyright (c) 2023 Tee, Demon Cat
Expand Down Expand Up @@ -123,7 +123,7 @@ function main() {
callScript('largeImageText()')
callScriptNumber('partySize()')
callScriptNumber('partyMax()')
props.largeImageKey = 'logo'
props.largeImageKey = configurations.largeImageKey.value


console.log(props)
Expand Down
3 changes: 2 additions & 1 deletion src/rpc_client-src/localstorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Github: https://github.com/teeteeteeteetee
* Discord: Tee#0001
*
* Last Modified: Saturday, 25th November 2023 4:52:55 pm
* Last Modified: Sunday, 7th April 2024 11:52:17 am
* Modified By: Tee ([email protected])
*
* Copyright (c) 2023 Tee, Stainless Love
Expand Down Expand Up @@ -45,6 +45,7 @@ export const rpcConfigurationTemplate = {
},
largeImageKey: {
enabled: true,
value: "logo",
description: "",
name: "Large Icon",
type: "dropdown",
Expand Down

0 comments on commit 066297f

Please sign in to comment.